mirror of
git://sigrok.org/libserialport
synced 2023-08-10 21:13:24 +03:00
linux: Define feature macros to get required functions.
This is needed to build with -std=c99.
This commit is contained in:
parent
7890cef6cf
commit
c51b846eee
@ -18,6 +18,11 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
|
#define _BSD_SOURCE // for timeradd, timersub, timercmp
|
||||||
|
#define _XOPEN_SOURCE 700 // for readlinkat
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user