[compiler-rt] r231647 - At least on NetBSD, sys/errno.h and errno.h are different, so use the
Joerg Sonnenberger
joerg at bec.de
Mon Mar 9 04:23:29 PDT 2015
Author: joerg
Date: Mon Mar 9 06:23:29 2015
New Revision: 231647
URL: http://llvm.org/viewvc/llvm-project?rev=231647&view=rev
Log:
At least on NetBSD, sys/errno.h and errno.h are different, so use the
correct header to get errno.
Modified:
compiler-rt/trunk/lib/profile/InstrProfilingFile.c
Modified: compiler-rt/trunk/lib/profile/InstrProfilingFile.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingFile.c?rev=231647&r1=231646&r2=231647&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingFile.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingFile.c Mon Mar 9 06:23:29 2015
@@ -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))
More information about the llvm-commits
mailing list