axkibe/lsyncd — Issue #53: Doesn't compile properly under Interix
Author: axkibe
Created: 2011-11-16 15:04:36+00:00
State: open

Originally filed by nicholas...@gmail.com on 2011-03-29T08:12:10

I'm interested in compiling lsyncd to run under Interix, specifically the version of SFU which comes with Windows 7. I got LUA and rsync to compile and install OK, but lsyncd is giving me some trouble.

A log of my build error is below. Any chance I could get a patch?

~/lsyncd-2.0.4$ make

make all-am
gcc -DHAVE_CONFIG_H -I. -D_ALL_SOURCE -I/usr/local/include -I/usr/local/ssl/include -I/usr/local/include/php -D_ALL
_SOURCE -Wall -I/usr/local/include -MT lsyncd.o -MD -MP -MF .deps/lsyncd.Tpo -c -o lsyncd.o lsyncd.c
lsyncd.c:1006:9: warning: #warning must use oldstyle realpath()
lsyncd.c: In function `l_readdir':
lsyncd.c:1113: error: structure has no member named `d_type'
lsyncd.c:1113: error: `DT_UNKNOWN' undeclared (first use in this function)
lsyncd.c:1113: error: (Each undeclared identifier is reported only once
lsyncd.c:1113: error: for each function it appears in.)
lsyncd.c:1125: error: structure has no member named `d_type'
lsyncd.c:1125: error: `DT_DIR' undeclared (first use in this function)
lsyncd.c: In function `masterloop':
lsyncd.c:1611: error: `fd_set' undeclared (first use in this function)
lsyncd.c:1611: error: parse error before "rfds"
lsyncd.c:1617: warning: implicit declaration of function `FD_ZERO'
lsyncd.c:1617: error: `rfds' undeclared (first use in this function)
lsyncd.c:1618: error: `wfds' undeclared (first use in this function)
lsyncd.c:1623: warning: implicit declaration of function `FD_SET'
lsyncd.c:1636: warning: implicit declaration of function `pselect'
lsyncd.c:1648: warning: implicit declaration of function `FD_ISSET'
*** Error code 1