tgnuisms - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 05f50fe6bf2352ec4ec9c94d22414f0eceeeda72
(DIR) parent 5551e51d2b9df4e289ea3cb1350db4d5f5444df2
(HTM) Author: rsc <devnull@localhost>
Date: Sun, 23 Jul 2006 03:05:22 +0000
gnuisms
Diffstat:
M src/cmd/9pfuse/main.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/src/cmd/9pfuse/main.c b/src/cmd/9pfuse/main.c
t@@ -17,9 +17,18 @@
* TODO: graceful shutdown.
*/
-#define _GNU_SOURCE 1 /* for O_DIRECTORY */
+#define _GNU_SOURCE 1 /* for O_DIRECTORY on Linux */
#include "a.h"
+/* GNUisms */
+#ifndef O_DIRECTORY
+#define O_DIRECTORY 0
+#endif
+#ifndef O_LARGEFILE
+#define O_LARGEFILE 0
+#endif
+
+
int debug;
char *argv0;
void fusedispatch(void*);