summaryrefslogtreecommitdiff
path: root/udp.c
diff options
context:
space:
mode:
authorvenaas <venaas>2008-12-19 14:36:09 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-12-19 14:36:09 +0000
commitbe2e70adfd0793b34e86e2a7463514923d1882cd (patch)
tree87f8d92c6dc68af23eb4816681546988b8056ad5 /udp.c
parentfb4af51e107fb96380efeadc252e25da079be6cc (diff)
allowing build with only specific transports
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@444 e88ac4ed-0b26-0410-9574-a7f39faa03bf
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