Skip to content

Commit

Permalink
Fixed compilation on FreeBSD and macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
wiire-a committed Dec 3, 2017
1 parent fd21867 commit 72de375
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pixiewps.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/

#define _POSIX_C_SOURCE 200809L
#define _XOPEN_SOURCE 700

#include <stdio.h>
#include <stdlib.h>
Expand All @@ -31,8 +32,14 @@
# include <windows.h>
#endif

#ifdef __APPLE__
# define _DARWIN_C_SOURCE
#endif
#include <sys/types.h>
#include <sys/time.h>
#if defined(__APPLE__) || defined(__FreeBSD__)
# include <sys/sysctl.h>
#endif

#include "config.h"
#include "pixiewps.h"
Expand Down

0 comments on commit 72de375

Please sign in to comment.