summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dpmcgee@gmail.com>2015-04-07 10:46:05 -0500
committerDan McGee <dpmcgee@gmail.com>2015-04-07 10:46:05 -0500
commit5b50abd6f4b63d822acdea31eaae6e1a4edbc393 (patch)
treec36ddc68e9fbbad75a832306a09d41a5b593f109
parentf5192e1929a344c3b9b90b71326581ef27875256 (diff)
downloadonkyocontrol-5b50abd6f4b63d822acdea31eaae6e1a4edbc393.tar.gz
onkyocontrol-5b50abd6f4b63d822acdea31eaae6e1a4edbc393.zip
Clean up defines to work on more platforms
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
-rw-r--r--command.c2
-rw-r--r--onkyo.c2
-rw-r--r--receiver.c1
3 files changed, 2 insertions, 3 deletions
diff --git a/command.c b/command.c
index 784b373..37aa954 100644
--- a/command.c
+++ b/command.c
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#define _BSD_SOURCE 1 /* strdup */
+#define _XOPEN_SOURCE 600 /* strdup */
#include <stdlib.h>
#include <stdio.h>
diff --git a/onkyo.c b/onkyo.c
index 46b7974..8e8916b 100644
--- a/onkyo.c
+++ b/onkyo.c
@@ -21,7 +21,7 @@
*/
#define _POSIX_C_SOURCE 1 /* signal handlers, getaddrinfo */
-#define _XOPEN_SOURCE 500 /* SA_RESTART */
+#define _XOPEN_SOURCE 600 /* SA_RESTART, strdup */
#include <stdlib.h>
#include <stdio.h>
diff --git a/receiver.c b/receiver.c
index b10222c..c7d8f02 100644
--- a/receiver.c
+++ b/receiver.c
@@ -17,7 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#define _BSD_SOURCE 1 /* strdup */
#define _GNU_SOURCE 1 /* memmem */
#include <stdlib.h>