[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling 0.6.14 on Solaris 10 SPARC

From: Pawel Kot
Subject: Re: Compiling 0.6.14 on Solaris 10 SPARC
Date: Fri, 20 Apr 2007 18:54:34 +0200


First of all, please answer under the quote and remove unneeded quotation.

On 4/20/07, ML mail <address@hidden> wrote:
I have added the include to sys/types.h in gnokii-calendar.c for example and
reran everything but unfortunately still the same error. Here is an extract
of gnokii/gnokii-calendar.c where you can see where I inserted the
sys/types.h line:

#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#define _GNU_SOURCE
#include <getopt.h>

Is this correct ?

That should work. Alternatively you may try the following patch:
Index: include/compat.h
RCS file: /cvsroot/gnokii/gnokii/include/compat.h,v
retrieving revision 1.51
diff -u -r1.51 compat.h
--- include/compat.h    23 Nov 2006 20:52:42 -0000      1.51
+++ include/compat.h    20 Apr 2007 16:53:24 -0000
@@ -97,8 +97,6 @@

#  include <limits.h>
-#  define INT_MAX 2147483647

@@ -109,6 +107,10 @@
#  include <termios.h>

+#if !defined(INT_MAX)
+#  define INT_MAX 2147483647
 * The following ifdef block is the standard way of creating macros which make
 * exporting from a DLL simpler. All files within this DLL are compiled with

take care,
Pawel Kot

reply via email to

[Prev in Thread] Current Thread [Next in Thread]