From 5cbff9a0201f1d7365397c9ecf21aaa99d438cfd Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Thu, 31 Oct 1996 06:55:15 +0000 Subject: [PATCH] USE of PORTNAME_* should be discouraged wherever possible. The code *should* be intelligent enough that: #if defined(__FreeBSD__) works, where __FreeBSD__ is actually defined by the compiler itself. Makefile.global used to have -DPORTNAME_ -D as part of the flags for gcc while all occurances of PORTNAME_ slowly get removed from the source tree... --- src/include/config.h | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/include/config.h b/src/include/config.h index 76eda5368b..773e68a608 100644 --- a/src/include/config.h +++ b/src/include/config.h @@ -15,11 +15,11 @@ #define HAVE_MEMMOVE -#if defined(PORTNAME_sequent) +#if defined(sequent) # define NEED_UNION_SEMUN #endif -#if defined(PORTNAME_alpha) +#if defined(alpha) # define USE_POSIX_TIME # define DISABLE_XOPEN_NLS # define NEED_ISINF @@ -27,25 +27,25 @@ # define NEED_UNION_SEMUN #endif -#if defined(PORTNAME_dgux) +#if defined(dgux) # define LINUX_ELF # define NEED_UNION_SEMUN #endif -#if defined(PORTNAME_ultrix4) +#if defined(ultrix4) # define NEED_ISINF # define USE_POSIX_TIME # define NEED_UNION_SEMUN #endif -#if defined(PORTNAME_linux) +#if defined(linux) # ifndef __USE_POSIX # define __USE_POSIX # endif # define NEED_CBRT #endif -#if defined(PORTNAME_hpux) +#if defined(hpux) # define USE_POSIX_TIME # define HAVE_TZSET # define NEED_CBRT @@ -53,7 +53,7 @@ # define NEED_UNION_SEMUN #endif -#if defined(PORTNAME_i386_solaris) +#if defined(i386_solaris) # define USE_POSIX_TIME # define NEED_ISINF # define NEED_RUSAGE @@ -62,12 +62,12 @@ # define NEED_UNION_SEMUN #endif -#if defined(PORTNAME_sparc) +#if defined(sparc) # define USE_POSIX_TIME # undef HAVE_MEMMOVE #endif -#if defined(PORTNAME_sparc_solaris) +#if defined(sparc_solaris) # define USE_POSIX_TIME # define NEED_ISINF # define NEED_RUSAGE @@ -77,7 +77,7 @@ # define NEED_UNION_SEMUN #endif -#if defined(PORTNAME_svr4) +#if defined(svr4) # define USE_POSIX_TIME # define NEED_ISINF # define NEED_RUSAGE @@ -86,11 +86,11 @@ # define NEED_UNION_SEMUN #endif -#if defined(PORTNAME_next) +#if defined(next) # define NEED_SIG_JMP #endif -#if defined(PORTNAME_win32) +#if defined(win32) # define NEED_SIG_JMP # define NO_UNISTD_H # define USES_WINSOCK @@ -101,21 +101,21 @@ # define NEED_ISINF #endif /* WIN32 */ -#if defined(PORTNAME_BSD44_derived) || \ - defined(PORTNAME_bsdi_2_1) +#if defined(BSD44_derived) || \ + defined(bsdi_2_1) # define USE_LIMITS_H # define USE_POSIX_TIME # define NEED_CBRT #endif -#if defined(PORTNAME_bsdi) +#if defined(bsdi) # define NEED_UNION_SEMUN # define USE_LIMITS_H # define USE_POSIX_TIME # define NEED_CBRT #endif -#if defined(PORTNAME_aix) +#if defined(aix) # define CLASS_CONFLICT # define DISABLE_XOPEN_NLS # define NEED_ISINF @@ -124,7 +124,7 @@ # define HAVE_TZSET #endif -#if defined(PORTNAME_irix5) +#if defined(irix5) # define USE_POSIX_TIME # define NEED_ISINF # define NO_EMPTY_STMTS -- GitLab