summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Broad <andy@broad.ology.org.uk>2015-08-26 17:26:38 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2015-09-05 11:12:44 -0400
commit3c0208ad3c184fd7d7bff9e1e9796e41ad4d815d (patch)
tree42dee4c8d42727f285bedba2a2bb5a0cfde066b7
parent153a1061c434ce6bd260de8414949e2f86119d3f (diff)
downloadperl-3c0208ad3c184fd7d7bff9e1e9796e41ad4d815d.tar.gz
amigaos4: FD_CLOEXEC is defined but not implemented
-rw-r--r--perl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 83521d0502..8eb625b61d 100644
--- a/perl.h
+++ b/perl.h
@@ -2789,6 +2789,11 @@ typedef struct padname PADNAME;
# include "unixish.h"
#endif
+#if defined(__amigaos4__)
+# include "amigaos.h"
+# undef FD_CLOEXEC /* a lie in AmigaOS */
+#endif
+
/* NSIG logic from Configure --> */
/* Strange style to avoid deeply-nested #if/#else/#endif */
#ifndef NSIG
@@ -6341,6 +6346,10 @@ expression, but with an empty argument list, like this:
# include <fcntl.h>
#endif
+#ifdef __amigaos4__
+# undef FD_CLOEXEC /* a lie in AmigaOS */
+#endif
+
#ifdef I_SYS_FILE
# include <sys/file.h>
#endif