summaryrefslogtreecommitdiff
path: root/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'udp.c')
-rw-r--r--udp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/udp.c b/udp.c
index b0cb464..ad2789b 100644
--- a/udp.c
+++ b/udp.c
@@ -6,6 +6,7 @@
* copyright notice and this permission notice appear in all copies.
*/
+#ifdef RADPROT_UDP
#include <signal.h>
#include <sys/socket.h>
#include <netinet/in.h>
@@ -336,3 +337,8 @@ void initextraudp() {
debugx(1, DBG_ERR, "pthread_create failed");
}
}
+#else
+const struct protodefs *udpinit(uint8_t h) {
+ return NULL;
+}
+#endif