6a4ee18179
rewritten. Allows for USA/non-USA support via the familiar USE_RSAREF2 mechanism, and significantly cleaned up. Does not attempt to fall back to $HOME/.pgp for keys as in the FreeBSD port, as other programs already require PGPPATH to be set.
29 lines
1.2 KiB
Text
29 lines
1.2 KiB
Text
$NetBSD: patch-ae,v 1.1.1.1 1999/05/23 22:41:21 tv Exp $
|
|
|
|
--- system.h.orig Fri Aug 27 13:16:40 1993
|
|
+++ system.h Sun May 23 17:43:15 1999
|
|
@@ -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__)
|
|
+ #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__) /* 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
|