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: