diff options
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/util.c b/src/common/util.c index 7dc8bcfb9e..c383417fde 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -72,8 +72,13 @@ #include <malloc/malloc.h> #endif #ifdef HAVE_MALLOC_H +#ifndef OPENBSD +/* OpenBSD has a malloc.h, but for our purposes, it only exists in order to + * scold us for being so stupid as to autodetect its presence. To be fair, + * they've done this since 1996, when autoconf was only 5 years old. */ #include <malloc.h> #endif +#endif #ifdef HAVE_MALLOC_NP_H #include <malloc_np.h> #endif |