From: Eli Zaretskii Date: Sun, 18 Nov 2012 16:54:31 +0000 (+0200) Subject: Fix latest changes in nt/inc/unistd.h. X-Git-Tag: emacs-24.3.90~173^2~18^2~61 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=031b541f1943a49ee06944cc5957dab3f7baedf9;p=emacs.git Fix latest changes in nt/inc/unistd.h. nt/inc/unistd.h: Don't include fcntl.h and don't define O_RDWR. Fixes: debbugs:12881 --- diff --git a/nt/ChangeLog b/nt/ChangeLog index 95203b9d2fa..4f9e8a2663c 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,7 @@ +2012-11-18 Eli Zaretskii + + * inc/unistd.h: Don't include fcntl.h and don't define O_RDWR. + 2012-11-17 Juanma Barranquero * config.nt: Sync with autogen/config.in. diff --git a/nt/inc/unistd.h b/nt/inc/unistd.h index 0173fdbb943..e751ed124d3 100644 --- a/nt/inc/unistd.h +++ b/nt/inc/unistd.h @@ -26,17 +26,6 @@ extern int faccessat (int, char const *, int, int); #define AT_EACCESS 4 #define AT_SYMLINK_NOFOLLOW 4096 -/* Here are some more fcntl.h macros that default to gnulib-compatible - values. Include first, to make sure we don't override - its values if any. FIXME: If we know does not define - O_NOCTTY and O_RDWR, this can be replaced with a simple "#define - O_NOCTTY 0" and "#define O_RDWR 2". */ -#include -#ifndef O_NOCTTY #define O_NOCTTY 0 -#endif -#ifndef O_RDWR -#define O_RDWR 2 -#endif #endif /* _UNISTD_H */