summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorIngo Weinhold <ingo_weinhold@gmx.de>2008-10-29 03:25:44 +0100
committerDavid Mitchell <davem@iabyn.com>2009-01-04 21:45:26 +0000
commitf2af008c87172eeaecccbd93159597aa125f6fab (patch)
tree1e522c7154afaf53e210265abea709dac03fdcbd /perl.h
parent05d357c2d99486111fe1941c1d545c9d5621c95c (diff)
downloadperl-f2af008c87172eeaecccbd93159597aa125f6fab.tar.gz
Haiku Port
Message-Id: <20081029022544.413.1@knochen-vm.localdomain> p4raw-id: //depot/perl@34630 (cherry-picked from commit df00ff3beeb297b9622f8acbed9c80d320c87580)
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/perl.h b/perl.h
index 8cf0f2e02e..1c265fb98e 100644
--- a/perl.h
+++ b/perl.h
@@ -1543,15 +1543,15 @@ EXTERN_C char *crypt(const char *, const char *);
# define S_IRWXO (S_IROTH|S_IWOTH|S_IXOTH)
#endif
-/* BeOS 5.0 seems to define S_IREAD and S_IWRITE in <posix/fcntl.h>
+/* BeOS 5.0 and Haiku R1 seem to define S_IREAD and S_IWRITE in <posix/fcntl.h>
* which would get included through <sys/file.h >, but that is 3000
* lines in the future. --jhi */
-#if !defined(S_IREAD) && !defined(__BEOS__)
+#if !defined(S_IREAD) && !(defined(__BEOS__) || defined(__HAIKU__))
# define S_IREAD S_IRUSR
#endif
-#if !defined(S_IWRITE) && !defined(__BEOS__)
+#if !defined(S_IWRITE) && !(defined(__BEOS__) || defined(__HAIKU__))
# define S_IWRITE S_IWUSR
#endif
@@ -2574,7 +2574,10 @@ typedef struct clone_params CLONE_PARAMS;
# define ISHISH "macos classic"
#endif
-#if defined(__BEOS__)
+#if defined(__HAIKU__)
+# include "haiku/haikuish.h"
+# define ISHISH "haiku"
+#elif defined(__BEOS__)
# include "beos/beosish.h"
# define ISHISH "beos"
#endif
@@ -5682,9 +5685,10 @@ int flock(int fd, int op);
#if O_TEXT != O_BINARY
/* If you have different O_TEXT and O_BINARY and you are a CLRF shop,
* that is, you are somehow DOSish. */
-# if defined(__BEOS__) || defined(__VOS__) || defined(__CYGWIN__)
- /* BeOS has O_TEXT != O_BINARY but O_TEXT and O_BINARY have no effect;
- * BeOS is always UNIXoid (LF), not DOSish (CRLF). */
+# if defined(__BEOS__) || defined(__HAIKU__) || defined(__VOS__) || \
+ defined(__CYGWIN__)
+ /* BeOS/Haiku has O_TEXT != O_BINARY but O_TEXT and O_BINARY have no effect;
+ * BeOS/Haiku is always UNIXoid (LF), not DOSish (CRLF). */
/* VOS has O_TEXT != O_BINARY, and they have effect,
* but VOS always uses LF, never CRLF. */
/* If you have O_TEXT different from your O_BINARY but you still are