aboutsummaryrefslogtreecommitdiffstats
path: root/recvfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'recvfd.c')
-rw-r--r--recvfd.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/recvfd.c b/recvfd.c
index 3892998..cd8ecb6 100644
--- a/recvfd.c
+++ b/recvfd.c
@@ -1,5 +1,6 @@
/* See LICENSE file for copyright and license details. */
#include "libsimple.h"
+#ifndef TEST
int
@@ -38,3 +39,15 @@ libsimple_recvfd(int sock) /* TODO test */
memcpy(&fd, CMSG_DATA(cmsg), sizeof(fd));
return fd;
}
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif