aboutsummaryrefslogtreecommitdiffstats
path: root/sendfd.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sendfd.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/sendfd.c b/sendfd.c
index 5d41fa4..5220761 100644
--- a/sendfd.c
+++ b/sendfd.c
@@ -1,5 +1,6 @@
/* See LICENSE file for copyright and license details. */
#include "libsimple.h"
+#ifndef TEST
int
@@ -29,3 +30,15 @@ libsimple_sendfd(int sock, int fd) /* TODO test */
return -(sendmsg(sock, &msg, 0) != (ssize_t)iov.iov_len);
}
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif