From: yoe Date: Sun, 23 May 2004 09:55:43 +0000 (+0000) Subject: r65: Clean up LFS defines X-Git-Url: http://git.alex.org.uk r65: Clean up LFS defines --- diff --git a/lfs.h b/lfs.h new file mode 100644 index 0000000..8f90f81 --- /dev/null +++ b/lfs.h @@ -0,0 +1,10 @@ +#ifndef LFS_H +#define LFS_H + +#include "config.h" +#ifdef NBD_LFS +#define _FILE_OFFSET_BITS 64 +#define _LARGEFILE_SOURCE +#endif /* NBD_LFS */ + +#endif /* LFS_H */ diff --git a/nbd-client.c b/nbd-client.c index ecb20fd..285e27a 100644 --- a/nbd-client.c +++ b/nbd-client.c @@ -14,6 +14,7 @@ */ #include "config.h" +#include "lfs.h" #include #include @@ -28,12 +29,12 @@ #include #include -#define MY_NAME "nbd_client" #ifndef __GNUC__ #error I need GCC to work #endif #include +#define MY_NAME "nbd_client" #include "cliserv.h" int opennet(char *name, int port) diff --git a/nbd-server.c b/nbd-server.c index 0eab68c..e22223a 100644 --- a/nbd-server.c +++ b/nbd-server.c @@ -54,6 +54,7 @@ /* Includes LFS defines, which defines behaviours of some of the following * headers, so must come before those */ #include "config.h" +#include "lfs.h" #include #include