--- /dev/null
+#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 */
*/
#include "config.h"
+#include "lfs.h"
#include <asm/page.h>
#include <sys/ioctl.h>
#include <syslog.h>
#include <stdlib.h>
-#define MY_NAME "nbd_client"
#ifndef __GNUC__
#error I need GCC to work
#endif
#include <linux/ioctl.h>
+#define MY_NAME "nbd_client"
#include "cliserv.h"
int opennet(char *name, int port)
/* Includes LFS defines, which defines behaviours of some of the following
* headers, so must come before those */
#include "config.h"
+#include "lfs.h"
#include <sys/types.h>
#include <sys/socket.h>