summaryrefslogtreecommitdiffstats
path: root/lib/csu
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1994-05-28 13:59:16 +0000
committerrgrimes <rgrimes@FreeBSD.org>1994-05-28 13:59:16 +0000
commitd13b1c246ffc9d231f99c2c6fe5867ad88930ebc (patch)
treeef3f7bf0d61d33fcf7772d93b8e520019ef1189f /lib/csu
parent65e5f0d8b716d3ee1c446d98e8cfc172bca7c6c6 (diff)
downloadFreeBSD-src-d13b1c246ffc9d231f99c2c6fe5867ad88930ebc.zip
FreeBSD-src-d13b1c246ffc9d231f99c2c6fe5867ad88930ebc.tar.gz
MAP_FILE is the default on mmap now, and is no longer defined just
like on a sun, so #define it to be 0 if we are running BSD >=199306.
Diffstat (limited to 'lib/csu')
-rw-r--r--lib/csu/i386/crt0.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/csu/i386/crt0.c b/lib/csu/i386/crt0.c
index 38fd64c..3158ede 100644
--- a/lib/csu/i386/crt0.c
+++ b/lib/csu/i386/crt0.c
@@ -55,7 +55,14 @@ int _callmain();
#define MAP_COPY MAP_PRIVATE
#define MAP_FILE 0
#define MAP_ANON 0
-#endif
+#else
+#ifdef BSD
+#if BSD>=199306
+#define MAP_FILE 0
+#endif /* BSD>=199306 */
+#endif /* BSD */
+#endif /* sun */
+
#include <link.h>
extern struct _dynamic _DYNAMIC;
OpenPOWER on IntegriCloud