comparison src/sysfile.h @ 1467:e5da225ea2ca

[xemacs-hg @ 2003-05-09 09:50:40 by stephent] #define stat workaround <87r878ihhf.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Fri, 09 May 2003 09:50:42 +0000
parents 70921960b980
children ecf1ebac70d8
comparison
equal deleted inserted replaced
1466:88a2f43560bf 1467:e5da225ea2ca
56 56
57 #ifndef WIN32_NATIVE 57 #ifndef WIN32_NATIVE
58 # include <sys/file.h> 58 # include <sys/file.h>
59 #endif 59 #endif
60 60
61 /* Some systems (SCO 3.2v5) do #define stat ... in this header. So it
62 _must_ be included before any use of struct stat. Most emacs files
63 should include sysfile.h. The unex*.c include <sys/stat.h> directly. */
61 #include <sys/stat.h> 64 #include <sys/stat.h>
62 65
63 #ifdef WIN32_ANY 66 #ifdef WIN32_ANY
64 # include <io.h> 67 # include <io.h>
65 #endif 68 #endif
366 int qxe_symlink (const Ibyte *name1, const Ibyte *name2); 369 int qxe_symlink (const Ibyte *name1, const Ibyte *name2);
367 #endif /* defined (HAVE_SYMLINK) */ 370 #endif /* defined (HAVE_SYMLINK) */
368 371
369 int qxe_unlink (const Ibyte *path); 372 int qxe_unlink (const Ibyte *path);
370 373
374 /* definition in filemode.c
375 must be declared here to ensure that struct stat is properly formed
376 on systems like SCO 3.2v5 */
377 void filemodestring (struct stat *, char *);
378
371 #endif /* emacs */ 379 #endif /* emacs */
372 380
373 381
374 #ifndef HAVE_H_ERRNO 382 #ifndef HAVE_H_ERRNO
375 extern int h_errno; 383 extern int h_errno;
476 484
477 #endif /* WIN32_ANY */ 485 #endif /* WIN32_ANY */
478 486
479 #endif /* emacs */ 487 #endif /* emacs */
480 488
481
482 #endif /* INCLUDED_sysfile_h_ */ 489 #endif /* INCLUDED_sysfile_h_ */