[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Ncurses 5.4 on IRIX 5.3 bug report
From: |
Georg Schwarz |
Subject: |
Ncurses 5.4 on IRIX 5.3 bug report |
Date: |
Sun, 21 Nov 2004 22:30:42 +0100 |
User-agent: |
MacSOUP/D-2.6.1 (Mac OS 8.1) |
The following is a bug report for Ncurses 5.4 on IRIX 5.3:
ncurses/tinfo/lib_napms.c includes time.h to define struct timespec. However, on
IRIX 5.3 that include file reads as follows:
#if (defined(_POSIX_4SOURCE) || defined(_SGI_SOURCE)) && !defined(_POSIX_SOURCE)
&& !defined(_XOPEN_SOURCE)
#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)
typedef struct timespec {
time_t tv_sec; /* seconds */
long tv_nsec; /* and nanoseconds */
} timespec_t;
....
now the problem is that ncurses defines _POSIX_SOURCE (and in addition does not
define _SGI_SOURCE).
The followiung patch corrects that problem:
--- configure.orig1 2004-11-21 14:55:24.000000000 +0100
+++ configure 2004-11-21 14:59:07.000000000 +0100
@@ -6193,7 +6193,7 @@
hpux*) #(vi
CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
;;
-irix6.*) #(vi
+irix[56].*) #(vi
CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
;;
linux*) #(vi
--
Georg Schwarz http://home.pages.de/~schwarz/
address@hidden +49 177 8811442
- Ncurses 5.4 on IRIX 5.3 bug report,
Georg Schwarz <=