瀏覽代碼

libarchive: Define O_CLOEXEC when missing

Do this in archive_random.c as we do in several other sources already.
Brad King 10 年之前
父節點
當前提交
61a0251e82
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Utilities/cmlibarchive/libarchive/archive_random.c

+ 4 - 0
Utilities/cmlibarchive/libarchive/archive_random.c

@@ -62,6 +62,10 @@ static void arc4random_buf(void *, size_t);
 #include <wincrypt.h>
 #endif
 
+#ifndef O_CLOEXEC
+#define O_CLOEXEC	0
+#endif
+
 /*
  * Random number generator function.
  * This simply calls arc4random_buf function if the platform provides it.