commit 05f50fe6bf2352ec4ec9c94d22414f0eceeeda72 from: rsc date: Sun Jul 23 03:05:22 2006 UTC gnuisms commit - 5551e51d2b9df4e289ea3cb1350db4d5f5444df2 commit + 05f50fe6bf2352ec4ec9c94d22414f0eceeeda72 blob - 15d471460c92e4bc47a1013fcf1aca214813a98c blob + cd045e94d8f2d79ef383aca8cc80af0648b584a8 --- src/cmd/9pfuse/main.c +++ src/cmd/9pfuse/main.c @@ -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*);