From 02a86debf0ffd4e0db702ae084266dd384505701 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 27 Aug 1998 08:18:03 +0000 Subject: [PATCH] Added patches from to resolve NetBSD build problems. --- include/Make-template | 24 ++++++++++++++++-------- include/portable.h | 11 ++++++----- 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/include/Make-template b/include/Make-template index c0a26fb629..8244b1a630 100644 --- a/include/Make-template +++ b/include/Make-template @@ -31,17 +31,25 @@ ldapconfig.h: ldapconfig.h.edit Makefile echo " * INSTALL file for more information." >> $@; \ echo " */ " >> $@; \ echo "" >> $@; \ - $(SED) -e 's;%ETCDIR%;$(RUNTIMEETCDIR);' ldapconfig.h.edit >> $@; \ + $(SED) -e 's;%ETCDIR%;$(LDAP_ETCDIR);' \ + -e 's;%BINDIR%;$(LDAP_BINDIR);' \ + -e 's;%SBINDIR%;$(LDAP_SBINDIR);' \ + -e 's;%LIBEXECDIR%;$(LDAP_LIBEXECDIR);' \ + -e 's;%RUNDIR%;$(LDAP_RUNDIR);' \ + -e 's;%EDITOR%;$(LDAP_EDITOR);' \ + -e 's;%FINGER%;$(LDAP_FINGER);' \ + -e 's;%SENDMAIL%;$(LDAP_SENDMAIL);' \ + ldapconfig.h.edit >> $@; \ $(CHMOD) 444 $@ install: all FORCE - -$(MKDIR) -p $(INCLUDEDIR) - $(INSTALL) $(INSTALLFLAGS) -m 644 ldap.h $(INCLUDEDIR) - $(INSTALL) $(INSTALLFLAGS) -m 644 lber.h $(INCLUDEDIR) - $(INSTALL) $(INSTALLFLAGS) -m 644 proto-lber.h $(INCLUDEDIR) - $(INSTALL) $(INSTALLFLAGS) -m 644 proto-ldap.h $(INCLUDEDIR) - $(INSTALL) $(INSTALLFLAGS) -m 644 disptmpl.h $(INCLUDEDIR) - $(INSTALL) $(INSTALLFLAGS) -m 644 srchpref.h $(INCLUDEDIR) + -$(MKDIR) -p $(LDAP_INCDIR) + $(INSTALL) $(INSTALLFLAGS) -m 644 ldap.h $(LDAP_INCDIR) + $(INSTALL) $(INSTALLFLAGS) -m 644 lber.h $(LDAP_INCDIR) + $(INSTALL) $(INSTALLFLAGS) -m 644 proto-lber.h $(LDAP_INCDIR) + $(INSTALL) $(INSTALLFLAGS) -m 644 proto-ldap.h $(LDAP_INCDIR) + $(INSTALL) $(INSTALLFLAGS) -m 644 disptmpl.h $(LDAP_INCDIR) + $(INSTALL) $(INSTALLFLAGS) -m 644 srchpref.h $(LDAP_INCDIR) depend: FORCE diff --git a/include/portable.h b/include/portable.h index a91b27a5d5..808d0c0237 100644 --- a/include/portable.h +++ b/include/portable.h @@ -61,9 +61,9 @@ #endif /* - * on many systems, we should use waitpid() instead of waitN() + * on most systems, we should use waitpid() instead of waitN() */ -#if !defined( USE_WAITPID ) && ( defined( SYSV ) || defined( sunos4 ) || defined( ultrix ) || defined( aix )) +#if !defined( USE_WAITPID ) && !defined( nextstep ) #define USE_WAITPID #endif @@ -101,7 +101,7 @@ * some systems don't have the BSD re_comp and re_exec routines */ #ifndef NEED_BSDREGEX -#if defined( SYSV ) || defined( VMS ) || defined( netbsd ) || defined( freebsd ) || defined( linux ) +#if defined( SYSV ) || defined( VMS ) || defined( netbsd ) || defined( linux ) #define NEED_BSDREGEX #endif #endif @@ -120,7 +120,8 @@ * Are sys_errlist and sys_nerr declared in stdio.h? */ #ifndef SYSERRLIST_IN_STDIO -#if defined( freebsd ) +#if defined( freebsd ) || defined( netbsd ) || \ + defined( __GLIBC__ ) && ( __GLIBC__ > 1 ) #define SYSERRLIST_IN_STDIO #endif #endif @@ -170,7 +171,7 @@ * call signal or sigset (signal does not block the signal while * in the handler on sys v and sigset does not exist on bsd) */ -#ifdef SYSV +#if defined(SYSV) && !defined(linux) #define SIGNAL sigset #else #define SIGNAL signal -- 2.39.5