-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support FreeBSD in the default configuration
FreeBSD support is basically just very small changes related to some different includes and one define to not hide non-standard defines like B115200. Signed-off-by: Arne Schwabe <[email protected]>
- Loading branch information
Showing
3 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
/* Author: Magnus Ivarsson <[email protected]> */ | ||
|
||
/* to get rid of implicit function declarations */ | ||
#ifndef __FreeBSD__ | ||
/* defining this on FreeBSD hides non-standard defines that sio.c depends on */ | ||
#define _XOPEN_SOURCE 600 | ||
#endif | ||
#define _GNU_SOURCE | ||
|
||
/* build with Darwin C extensions not part of POSIX, i.e. FASYNC, SIGIO. | ||
|
@@ -37,6 +40,8 @@ | |
#include <stdio.h> | ||
#if defined(LWIP_UNIX_OPENBSD) || defined(LWIP_UNIX_MACH) | ||
#include <util.h> | ||
#elif defined(LWIP_UNIX_FREEBSD) | ||
#include <libutil.h> | ||
#endif | ||
#include <termios.h> | ||
#include <stdio.h> | ||
|