summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2012-05-15 19:20:01 -0300
committerSamuel Ortiz <sameo@linux.intel.com>2012-05-17 01:20:56 +0200
commit16e609f73e5823a29f387d77c3691ad074d49137 (patch)
treefc3575a8cdb2fc045b6fe8df4d36065caf4d5e32 /tools
parent11641a8aab3024edc3dbad8aae8d617d2b2779b3 (diff)
downloadneard-16e609f73e5823a29f387d77c3691ad074d49137.tar.gz
neard-16e609f73e5823a29f387d77c3691ad074d49137.tar.bz2
neard-16e609f73e5823a29f387d77c3691ad074d49137.zip
tools: Fix snep-send compilation with glibc 2.15
From glibc 2.15 on, AF_NFC is already defined, so we need to protect all local redefinitions.
Diffstat (limited to 'tools')
-rw-r--r--tools/snep-send.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/snep-send.c b/tools/snep-send.c
index 950fd58..1921ad2 100644
--- a/tools/snep-send.c
+++ b/tools/snep-send.c
@@ -15,7 +15,10 @@
#include "../src/near.h"
+/* HACK HACK */
+#ifndef AF_NFC
#define AF_NFC 39
+#endif
#define SNEP_VERSION 0x10