Cygwin build

Hi, i'm trying to build moc stable for Cygwin but I get the following error during the build:

make[3]: Leaving directory `/home/Phil Turner/moc-2.3.3/decoder_plugins/speex'
make[3]: Entering directory `/home/Phil Turner/moc-2.3.3/decoder_plugins'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/Phil Turner/moc-2.3.3/decoder_plugins'
make[2]: Leaving directory `/home/Phil Turner/moc-2.3.3/decoder_plugins'
make[2]: Entering directory `/home/Phil Turner/moc-2.3.3'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -DSYSTEM_THEMES_DIR=\"/usr/local/share/moc/t
hemes\" -DPLUGIN_DIR=\"/usr/local/lib/moc/decoder_plugins\" -g -O2 -Wall -W -
MT log.o -MD -MP -MF ".deps/log.Tpo" -c -o log.o log.c; \
then mv -f ".deps/log.Tpo" ".deps/log.Po"; else rm -f ".deps/log.Tpo"; exit 1; f
i
if gcc -DHAVE_CONFIG_H -I. -I. -I. -DSYSTEM_THEMES_DIR=\"/usr/local/share/moc/t
hemes\" -DPLUGIN_DIR=\"/usr/local/lib/moc/decoder_plugins\" -g -O2 -Wall -W -
MT protocol.o -MD -MP -MF ".deps/protocol.Tpo" -c -o protocol.o protocol.c; \
then mv -f ".deps/protocol.Tpo" ".deps/protocol.Po"; else rm -f ".deps/protocol.
Tpo"; exit 1; fi
protocol.c: In function `event_send_noblock':
protocol.c:680: error: `MSG_DONTWAIT' undeclared (first use in this function)
protocol.c:680: error: (Each undeclared identifier is reported only once
protocol.c:680: error: for each function it appears in.)
make[2]: *** [protocol.o] Error 1
make[2]: Leaving directory `/home/Phil Turner/moc-2.3.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Phil Turner/moc-2.3.3'
make: *** [all] Error 2

Whilst I have a bit of experience building programs for linux, when it comes to errors during the build I generally dont have a clue!. any help would be great.

PS: I am trying to build it for Cygwin because I cannot find a suitable alternative for windoze.

I don't think MOC will work on cygwin because no sound output method that could work on Windows is implemented. Everything else is probably portable.

About the error: try replacing MSG_DONTWAIT with 0, it should work. Even if you compile MOC, you could run it only with the null output driver without hearing any sound.

--
Damian Pietras - MOC developer

Thanks for your help. Replacing MSG_DONTWAIT with 0 worked ok but when it comes to running moc, I get an error about no plugins being loaded. There seems to be some sort of limited sound support for cygwin, but probably not enough for what I want. I think I will need to explore other options.

BTW I do use moc on "slax", and I thankyou for an excellent programme.

FYI CygWin supports OSS, including read, write, and most ioctls.

If you ever want to give it a try, you might find the following files useful, from a winsup-src-* snapshot at http://cygwin.com/snapshots/

winsup/cygwin/fhandler_dsp.cc
winsup/testsuite/winsup.api/devdsp.c

(I'm not asking for it, I don't even have a Windows box.)