Add some compatibility defines to dnssd.c.
[deb_shairplay.git] / src / lib / dnssd.c
index ebdf1926b9bc6c287bba7d08472cd7b0ecf19621..4859e3239c7aa569109a7d27933d4c67508fbb29 100644 (file)
  *  Lesser General Public License for more details.
  */
 
+/* These defines allow us to compile on iOS */
+#ifndef __has_feature
+# define __has_feature(x) 0
+#endif
+#ifndef __has_extension
+# define __has_extension __has_feature
+#endif
+
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
 #include <assert.h>
 
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 
 #include "dnssd.h"
 #include "dnssdint.h"