Add unit tests for opening non-ELF files.
[folly.git] / folly / portability / SysUio.h
index aa243d51d7eed841ef1b026be16382fb41f22100..eead4b03e36906929c0da4ee52e85f672a230971 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 #include <folly/portability/IOVec.h>
 #include <folly/portability/SysTypes.h>
 
-#if defined(FOLLY_HAVE_PREADV) && !FOLLY_HAVE_PREADV
+#if !FOLLY_HAVE_PREADV
 extern "C" ssize_t preadv(int fd, const iovec* iov, int count, off_t offset);
 #endif
-#if defined(FOLLY_HAVE_PWRITEV) && !FOLLY_HAVE_PWRITEV
+#if !FOLLY_HAVE_PWRITEV
 extern "C" ssize_t pwritev(int fd, const iovec* iov, int count, off_t offset);
 #endif
 
@@ -38,4 +38,4 @@ constexpr size_t kIovMax = IOV_MAX;
 #else
 constexpr size_t kIovMax = UIO_MAXIOV;
 #endif
-}
+} // namespace folly