At least on NetBSD, sys/errno.h and errno.h are different, so use the
authorJoerg Sonnenberger <joerg@bec.de>
Mon, 9 Mar 2015 11:23:29 +0000 (11:23 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Mon, 9 Mar 2015 11:23:29 +0000 (11:23 +0000)
correct header to get errno.

llvm-svn: 231647

compiler-rt/lib/profile/InstrProfilingFile.c

index daa3094..d9acbbe 100644 (file)
@@ -8,10 +8,10 @@
 \*===----------------------------------------------------------------------===*/
 
 #include "InstrProfiling.h"
+#include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/errno.h>
 
 #define UNCONST(ptr) ((void *)(uintptr_t)(ptr))