summaryrefslogtreecommitdiff
path: root/src/s/isc2-2.h
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-11-10 16:38:55 +0000
committerRichard M. Stallman <rms@gnu.org>1995-11-10 16:38:55 +0000
commite3bebca706a2694248930250f2ee5f1b99988cfe (patch)
tree555a36c88dbbdaa6f3ea87bb6ed3cb6ad628ac4a /src/s/isc2-2.h
parent643cf215b2b4569115c5a2c57dbf21a4d262684c (diff)
downloademacs-e3bebca706a2694248930250f2ee5f1b99988cfe.tar.gz
(LIB_STANDARD_1): New macro.
(LIB_STANDARD): Use LIB_STANDARD_1. (LIBS_SYSTEM): Use it here too.
Diffstat (limited to 'src/s/isc2-2.h')
-rw-r--r--src/s/isc2-2.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/s/isc2-2.h b/src/s/isc2-2.h
index 1a8a966f4e6..79305e7594e 100644
--- a/src/s/isc2-2.h
+++ b/src/s/isc2-2.h
@@ -39,18 +39,24 @@
for the rename function, but some people say ISC's rename doesn't
work correctly with Emacs so we use Emacs' emulation instead. */
#if defined (__GNUC__)
-# define LIB_STANDARD -lcposix -lc
+# define LIB_STANDARD_1 -lcposix
#else /* !__GNUC__ */
-# define LIB_STANDARD -lPW -lc
+# define LIB_STANDARD_1 -lPW
#endif /* !__GNUC__ */
+/* LIB_STANDARD_1 is used both here and in LIBS_SYSTEM
+ (the latter for the sake of configure). */
+#define LIB_STANDARD LIB_STANDARD_1 -lc
+
#define NO_X_DESTROY_DATABASE
-/* May be needed to avoid undefined symbols such as gethostname,
+/* -linet may be needed to avoid undefined symbols such as gethostname,
inet_addr, gethostbyname, socket, connect, ... But if we are not
compiling with X support, it's not needed. */
#ifdef HAVE_X_WINDOWS
-#define LIBS_SYSTEM -linet
+#define LIBS_SYSTEM -linet LIBS_STANDARD_1
+#else
+#define LIBS_SYSTEM LIBS_STANDARD_1
#endif
/* This system has job control. */