diff -u -r --exclude=CVS gnokii-cvs/common/data/virtmodem.c gnokii-devel/common/data/virtmodem.c --- gnokii-cvs/common/data/virtmodem.c Tue May 6 01:59:25 2003 +++ gnokii-devel/common/data/virtmodem.c Thu Jul 24 03:41:49 2003 @@ -45,6 +45,13 @@ # define HAVE_MSGHDR_MSG_CONTROL 1 #endif +/* same for FreeBSD */ +#ifdef __FreeBSD__ +# include +# undef __BSD_VISIBLE +# define __BSD_VISIBLE 1 +#endif + /* This is the correct way to include stdlib with _XOPEN_SOURCE = 500 defined. * Needed for clean unlockpt() declaration. * msghdr structure in Solaris depends on _XOPEN_SOURCE = 500 too. - bozo diff -u -r --exclude=CVS gnokii-cvs/utils/mgnokiidev.c gnokii-devel/utils/mgnokiidev.c --- gnokii-cvs/utils/mgnokiidev.c Thu Apr 10 01:27:16 2003 +++ gnokii-devel/utils/mgnokiidev.c Thu Jul 24 03:45:32 2003 @@ -39,6 +39,13 @@ #endif /* See common/data/virtmodem.c for explanation */ +#ifdef __FreeBSD__ +# include +# undef __BSD_VISIBLE +# define __BSD_VISIBLE 1 +#endif + +/* See common/data/virtmodem.c for explanation */ #define _XOPEN_SOURCE 500 #include "misc.h"