At least on NetBSD, sys/errno.h and errno.h are different, so use the

correct header to get errno.

llvm-svn: 231647
This commit is contained in:
Joerg Sonnenberger
2015-03-09 11:23:29 +00:00
parent b9a1443576
commit ef24b4171d

View 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))