diff options
author | Marc G. Fournier | 1997-05-07 03:12:46 +0000 |
---|---|---|
committer | Marc G. Fournier | 1997-05-07 03:12:46 +0000 |
commit | 9f2d7146202c157e85d957e4980f6b3e58c5e9cc (patch) | |
tree | 7694e27811ae4c14e6f33d579b48e647bea9921d | |
parent | a5d7eb90a8295dae6cbd872d8f81920c63a397bc (diff) |
From: "Paul M. Aoki" <[email protected]>
Subject: [PATCHES] port patch: ultrix4
ultrix4 doesn't compile without this. this also fixes a problem
with dynamic loading (ultrix relocatable objects must be loaded
with -G 0).
-rw-r--r-- | src/include/port/ultrix4.h | 7 | ||||
-rw-r--r-- | src/makefiles/Makefile.ultrix4 | 7 | ||||
-rw-r--r-- | src/template/ultrix4 | 2 |
3 files changed, 14 insertions, 2 deletions
diff --git a/src/include/port/ultrix4.h b/src/include/port/ultrix4.h index 55aa074f3a..c050965d5b 100644 --- a/src/include/port/ultrix4.h +++ b/src/include/port/ultrix4.h @@ -1,6 +1,10 @@ # define USE_POSIX_TIME # define NEED_STRDUP +#ifndef BYTE_ORDER +#define BYTE_ORDER LITTLE_ENDIAN +#endif + /* * Except for those system calls and library functions that are either * - covered by the C standard library and Posix.1 @@ -54,5 +58,6 @@ extern int gettimeofday(struct timeval *, struct timezone *); extern int fsync(int); extern int ftruncate(int, off_t); -/* End of ultrix4.h */ +extern char *crypt(char *, char *); +/* End of ultrix4.h */ diff --git a/src/makefiles/Makefile.ultrix4 b/src/makefiles/Makefile.ultrix4 index cf46e90819..b56aee6c68 100644 --- a/src/makefiles/Makefile.ultrix4 +++ b/src/makefiles/Makefile.ultrix4 @@ -1,2 +1,9 @@ # install creates intermediate directories NO_BEFOREINSTL= true +SHELL=/bin/sh5 + +# +# "-G 0" works for both DEC cc and GNU cc. +# +%.so: %.c + $(CC) -c -G 0 $(CFLAGS) -o $@ $< diff --git a/src/template/ultrix4 b/src/template/ultrix4 index 038c7b1ef0..237426646f 100644 --- a/src/template/ultrix4 +++ b/src/template/ultrix4 @@ -5,6 +5,6 @@ ALL: SRCH_INC: SRCH_LIB: USE_LOCALE:no -DLSUFFIX:.o +DLSUFFIX:.so YFLAGS:-d YACC: |