gnokii-users
[Top][All Lists]
Advanced

[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

Hi,

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 @@

#ifdef HAVE_LIMITS_H
#  include <limits.h>
-#else
-#  define INT_MAX 2147483647
#endif

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

+#if !defined(INT_MAX)
+#  define INT_MAX 2147483647
+#endif
+
/*
 * 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,
pkot
--
Pawel Kot




reply via email to

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