Minor alterations to compile on amd64

23 views
Skip to first unread message

Giles

unread,
Jul 3, 2009, 5:36:03 PM7/3/09
to SC101 NBD Server
Hi, I found to compile on a 64 bit platform, In nbd.h, I had to
replace

typedef uint64_t __be64

with

#if !defined(__amd64__)
typedef uint64_t __be64
#endif

to avoid errors about __be64 already defined.

and in ut.c i had to add

#include <linux/limits.h>

to avoid errors about PATH_MAX not defined.
Reply all
Reply to author
Forward
0 new messages