Remove test case dependancy on platform headers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97088 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Analysis/unix-fns.c b/test/Analysis/unix-fns.c
index 2bc2efa..777ad19 100644
--- a/test/Analysis/unix-fns.c
+++ b/test/Analysis/unix-fns.c
@@ -1,7 +1,11 @@
 // RUN: %clang_cc1 -analyze -analyzer-check-objc-mem %s -analyzer-store=region
 // RUN: %clang_cc1 -analyze -analyzer-check-objc-mem %s -analyzer-store=basic
 
-#include <fcntl.h>
+#ifndef O_CREAT
+#define O_CREAT 0x0200
+#define O_RDONLY 0x0000
+#endif
+int open(const char *, int, ...);
 
 void test_open(const char *path) {
   int fd;