ID:445 - Fix of compilation on FreeBSD

This commit is contained in:
Leonid Nevecherya 2016-05-31 18:21:31 +03:00 committed by Zdenek Styblik
parent 7e991a18e0
commit 0ffe39dedc
4 changed files with 6 additions and 1 deletions

View File

@ -99,6 +99,7 @@ solaris*)
*freebsd*) *freebsd*)
xenable_intf_imb=no xenable_intf_imb=no
xenable_intf_lipmi=no xenable_intf_lipmi=no
CFLAGS="$CFLAGS -D__BSD_VISIBLE"
;; ;;
*netbsd*) *netbsd*)
xenable_intf_imb=no xenable_intf_imb=no

View File

@ -29,7 +29,7 @@
* LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
* EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
*/ */
#define _POSIX_SOURCE #define _POSIX_C_SOURCE 1
#include <stdio.h> #include <stdio.h>
#include <fcntl.h> #include <fcntl.h>

View File

@ -33,7 +33,9 @@
/* Serial Interface, Basic Mode plugin. */ /* Serial Interface, Basic Mode plugin. */
#if defined HAVE_ALLOCA_H
#include <alloca.h> #include <alloca.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <fcntl.h> #include <fcntl.h>
#include <time.h> #include <time.h>

View File

@ -33,7 +33,9 @@
/* Serial Interface, Terminal Mode plugin. */ /* Serial Interface, Terminal Mode plugin. */
#if defined HAVE_ALLOCA_H
#include <alloca.h> #include <alloca.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>