Open
Description
When I compiled I get:
script.c:24:10: fatal error: 'endian.h' file not found
#include <endian.h>
^~~~~~~~~~
clang -DHAVE_CONFIG_H -I. -I.. -DKAMID_VERSION='"0.2"' -I../ -I../compat -I../lib -MT kamiftp-ftp.o -MD -MP -MF .deps/kamiftp-ftp.Tpo -c -o kamiftp-ftp.o `test -f 'ftp.c' || echo './'`ftp.c
ftp.c:251:8: warning: implicit declaration of function 'le32toh' is invalid in C99 [-Wimplicit-function-declaration]
len = le32toh(len);
^
ftp.c:275:9: warning: implicit declaration of function 'le64toh' is invalid in C99 [-Wimplicit-function-declaration]
return le64toh(n);
^
ftp.c:284:9: warning: implicit declaration of function 'le32toh' is invalid in C99 [-Wimplicit-function-declaration]
return le32toh(n);
^
ftp.c:293:9: warning: implicit declaration of function 'le16toh' is invalid in C99 [-Wimplicit-function-declaration]
return le16toh(n);
^
ftp.c:904:50: error: use of undeclared identifier 'SOCK_CLOEXEC'
sock = socket(res->ai_family, res->ai_socktype|SOCK_CLOEXEC,
In file included from table_static.c:25:
./kamid.h:112:14: error: use of undeclared identifier 'LOGIN_NAME_MAX'
char uname[LOGIN_NAME_MAX];
^
1 error generated.
I ask because the description say UNIX-like. I tried to look at LOGIN_NAME_MAX
and it seem to exist on Darwin:
$ getconf LOGIN_NAME_MAX
255
for endian.h I consider https://github.com/kristapsdz/oconfigure#endianh
Would you merge a PR that add Darwin support ?
Metadata
Metadata
Assignees
Labels
No labels