summaryrefslogtreecommitdiff
path: root/source3/include/includes.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-03 11:51:30 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-03 11:51:30 +0000
commit959005eb5e78f847c0c4f789c3af96549617873c (patch)
tree83c45f305b2d8e9ff85826924a1add6a7c03ad83 /source3/include/includes.h
parentc0dd3c5c5c92c1843ec1a272c592bda99d0c383a (diff)
downloadsamba-959005eb5e78f847c0c4f789c3af96549617873c.tar.gz
samba-959005eb5e78f847c0c4f789c3af96549617873c.tar.bz2
samba-959005eb5e78f847c0c4f789c3af96549617873c.zip
define O_ACCMODE if not defined
(This used to be commit 48de03824ed33e9751bc9deeb22f1e1ef650b8cb)
Diffstat (limited to 'source3/include/includes.h')
-rw-r--r--source3/include/includes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 2ec134b7c6..ecd7e0e1ab 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -606,6 +606,10 @@ union semun {
#define crypt ufc_crypt
#endif
+#ifndef O_ACCMODE
+#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
+#endif
+
#if defined(HAVE_CRYPT16) && defined(HAVE_GETAUTHUID)
#define ULTRIX_AUTH 1
#endif