Partially sync files.el from XEmacs 21.5 for wildcard support.
[sxemacs] / src / sysfile.h
index 16a86b4..df59f91 100644 (file)
@@ -45,14 +45,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
 #include <sys/stat.h>
 
-#ifdef HAVE_GTK
-/* I hate GTK */
-#undef MIN
-#undef MAX
-#endif                         /* HAVE_GTK */
 #include <sys/param.h>
 
-#if defined (NeXT) 
+#if defined (NeXT)
 /* what is needed from here?  Do others need it too? */
 # include <sys/fcntl.h>
 #endif                         /* NeXT */
@@ -309,6 +304,7 @@ ssize_t sys_write(int, const void *, size_t);
 
 #ifdef ENCAPSULATE_OPEN
 int sys_open(const char *, int, ...);
+int raw_open(const char *, int, ...);
 #endif
 #if defined (ENCAPSULATE_OPEN) && !defined (DONT_ENCAPSULATE)
 # undef open
@@ -316,6 +312,7 @@ int sys_open(const char *, int, ...);
 #endif
 #if !defined (ENCAPSULATE_OPEN) && defined (DONT_ENCAPSULATE)
 # define sys_open open
+# define raw_open open
 #endif
 
 #ifdef ENCAPSULATE_CLOSE