aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-05 01:27:24 +0000
committerYang Tse <yangsita@gmail.com>2008-09-05 01:27:24 +0000
commit62519bfe059251af2914199f284c736553ff0489 (patch)
tree01c3b4f32b3b86c6ac6da3c3da0c9cadd49a28e6 /lib
parent29f7f468ced90d4a3d1084295318b3d640ac3e0b (diff)
somewhat protect Mac OS X users from using Mac OS 9 config file
Diffstat (limited to 'lib')
-rw-r--r--lib/config-mac.h11
-rw-r--r--lib/setup.h4
2 files changed, 13 insertions, 2 deletions
diff --git a/lib/config-mac.h b/lib/config-mac.h
index e6d2130a5..0cb684064 100644
--- a/lib/config-mac.h
+++ b/lib/config-mac.h
@@ -1,3 +1,12 @@
+#ifndef __LIB_CONFIG_MAC_H
+#define __LIB_CONFIG_MAC_H
+
+/* ================================================================ */
+/* lib/config-mac.h - Hand crafted config file for Mac OS 9 */
+/* ================================================================ */
+/* On Mac OS X you must run configure to generate config.h file */
+/* ================================================================ */
+
#define OS "mac"
#define HAVE_NETINET_IN_H 1
@@ -83,3 +92,5 @@
#define HAVE_EXTRA_STRICMP_H 1
#define HAVE_EXTRA_STRDUP_H 1
+
+#endif /* __LIB_CONFIG_MAC_H */
diff --git a/lib/setup.h b/lib/setup.h
index 864896118..59da0e0d3 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -48,8 +48,8 @@
#endif
#endif
-#ifdef macintosh
-#include "config-mac.h"
+#if defined(macintosh) && defined(__MRC__)
+# include "config-mac.h"
#endif
#ifdef __AMIGA__