* tests/uio.c: Use SKIP_MAIN_UNDEFINED.
/*
- * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
+ * Copyright (c) 2014-2016 Dmitry V. Levin <ldv@altlinux.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*/
#include "tests.h"
-#include <fcntl.h>
-#include <unistd.h>
-#include <sys/uio.h>
-#include <assert.h>
+
+#if defined(HAVE_PREADV) && defined(HAVE_PWRITEV)
+
+# include <fcntl.h>
+# include <unistd.h>
+# include <sys/uio.h>
+# include <assert.h>
int
main(void)
{
-#if defined(HAVE_PREADV) && defined(HAVE_PWRITEV)
const off_t offset = 0xdefaceddeadbeefLL;
char buf[4];
struct iovec iov = { buf, sizeof buf };
assert(!close(0));
return 0;
+}
+
#else
- return 77;
+
+SKIP_MAIN_UNDEFINED("HAVE_PREADV && HAVE_PWRITEV")
+
#endif
-}