freetdm: Fix for OPENZAP-128

ioctl interface in FreeBSD expects unsigned long
This commit is contained in:
Moises Silva 2010-12-17 09:52:26 -05:00
parent 917879fe65
commit c2262aba2b
1 changed files with 38 additions and 32 deletions

View File

@ -53,42 +53,48 @@ static struct {
float txgain; float txgain;
} zt_globals; } zt_globals;
#if defined(__FreeBSD__)
typedef unsigned long ioctlcmd;
#else
typedef int ioctlcmd;
#endif
/** /**
* \brief General IOCTL codes * \brief General IOCTL codes
*/ */
struct ioctl_codes { struct ioctl_codes {
int GET_BLOCKSIZE; ioctlcmd GET_BLOCKSIZE;
int SET_BLOCKSIZE; ioctlcmd SET_BLOCKSIZE;
int FLUSH; ioctlcmd FLUSH;
int SYNC; ioctlcmd SYNC;
int GET_PARAMS; ioctlcmd GET_PARAMS;
int SET_PARAMS; ioctlcmd SET_PARAMS;
int HOOK; ioctlcmd HOOK;
int GETEVENT; ioctlcmd GETEVENT;
int IOMUX; ioctlcmd IOMUX;
int SPANSTAT; ioctlcmd SPANSTAT;
int MAINT; ioctlcmd MAINT;
int GETCONF; ioctlcmd GETCONF;
int SETCONF; ioctlcmd SETCONF;
int CONFLINK; ioctlcmd CONFLINK;
int CONFDIAG; ioctlcmd CONFDIAG;
int GETGAINS; ioctlcmd GETGAINS;
int SETGAINS; ioctlcmd SETGAINS;
int SPANCONFIG; ioctlcmd SPANCONFIG;
int CHANCONFIG; ioctlcmd CHANCONFIG;
int SET_BUFINFO; ioctlcmd SET_BUFINFO;
int GET_BUFINFO; ioctlcmd GET_BUFINFO;
int AUDIOMODE; ioctlcmd AUDIOMODE;
int ECHOCANCEL; ioctlcmd ECHOCANCEL;
int HDLCRAWMODE; ioctlcmd HDLCRAWMODE;
int HDLCFCSMODE; ioctlcmd HDLCFCSMODE;
int SPECIFY; ioctlcmd SPECIFY;
int SETLAW; ioctlcmd SETLAW;
int SETLINEAR; ioctlcmd SETLINEAR;
int GETCONFMUTE; ioctlcmd GETCONFMUTE;
int ECHOTRAIN; ioctlcmd ECHOTRAIN;
int SETTXBITS; ioctlcmd SETTXBITS;
int GETRXBITS; ioctlcmd GETRXBITS;
}; };
/** /**