307c1dd679
* Use curses. Darwin doesn't have termcap. * Add __APPLE__ to system.h to define necessary macros. * Replace __{Free,Open,Net}BSD__ with __UNIX__ in language/language.c. It worked on *BSD, but not correct logically. XXX -no-cpp-precomp issue isn't fixed yet. I think we should fix it in XXX generic way.
29 lines
1.2 KiB
Text
29 lines
1.2 KiB
Text
$NetBSD: patch-ae,v 1.2 2002/03/09 03:27:52 yyamano Exp $
|
|
|
|
--- system.h.orig Sat Aug 28 02:16:40 1993
|
|
+++ system.h
|
|
@@ -779,6 +779,10 @@
|
|
#if defined( AIX ) || defined( AIX370 ) || defined( AIX386 )
|
|
#define MAX_PATH ( 1023 + 1 )
|
|
#define MAX_FILENAME ( 254 + 1 )
|
|
+#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
|
|
+ #include <limits.h>
|
|
+ #define MAX_PATH ( _POSIX_PATH_MAX + 1 )
|
|
+ #define MAX_FILENAME ( NAME_MAX + 1 )
|
|
#elif defined( BSD386 ) || defined( GENERIC ) || defined( HPUX ) || \
|
|
defined( IRIX ) || defined( LINUX ) || defined( NEXT ) || \
|
|
defined( OSF1 ) || defined( SUNOS ) || defined( ULTRIX ) || \
|
|
@@ -899,6 +903,13 @@
|
|
#if defined( AIX ) || defined( AIX370 )
|
|
#define NEED_STRLWR /* AIX RS6000, AIX 370 */
|
|
#define NEED_STRICMP
|
|
+#elif defined( __FreeBSD__ ) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) /* Amdahl UTS4 */
|
|
+ #include <unistd.h>
|
|
+ #define tell(fd) lseek((fd),(off_t)0,SEEK_CUR)
|
|
+ #define NEED_STRLWR
|
|
+ #define stricmp strcasecmp
|
|
+ #define strnicmp strncasecmp
|
|
+ #define USE_TERMCAP
|
|
#elif defined( AIX386 )
|
|
#define NEED_STRLWR /* AIX 386 */
|
|
#define NEED_STRICMP
|