Subject: how to use oss compatibility when compiling linux C code on NetBSD?
To: None <current-users@netbsd.org>
From: George Michaelson <ggm@apnic.net>
List: current-users
Date: 04/01/2004 20:59:21
I'm trying to make linphone, a SIP compatible softphone. Its oss driver is
dying, because of the differences in defining ioctl() values via _IOWR() calls

I have confirmed its including the soundcard.h compatibility header, but I can't
see where the _IOWR() definition is failing to process the third/fourth args.

cheers

-George

----

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../mediastreamer -I../oRTP/src -I../oRTP -I../gsmlib -I../lpc10-1.5 -I../ffmpeg/libavcodec -I/usr/X11R6/include/X11 -I/usr/include/SDL -I../speex/libspeex -pthread -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -DG_LOG_DOMAIN=\"MediaStreamer\" -g -O2 -c osscard.c -MT osscard.lo -MD -MP -MF .deps/osscard.TPlo  -fPIC -DPIC -o .libs/osscard.o
osscard.c: In function `oss_open':
osscard.c:77: error: syntax error before "int"
osscard.c:83: error: syntax error before "int"
osscard.c:89: error: syntax error before "int"
osscard.c:95: error: syntax error before "int"
osscard.c:104: error: syntax error before "int"
osscard.c:110: error: syntax error before "int"
osscard.c: In function `oss_card_probe':
osscard.c:147: error: syntax error before "int"
osscard.c:150: error: syntax error before "int"
osscard.c:153: error: syntax error before "int"
osscard.c:155: error: syntax error before "int"
osscard.c:164: error: syntax error before "int"
osscard.c:170: error: syntax error before "int"
osscard.c: In function `oss_card_set_level':
osscard.c:313: error: syntax error before "int"
osscard.c: In function `oss_card_get_level':
osscard.c:339: error: syntax error before "int"
osscard.c: In function `oss_card_set_source':
osscard.c:360: error: syntax error before "int"
gmake[2]: *** [osscard.lo] Error 1