summaryrefslogtreecommitdiff
path: root/src/util/replace.h
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2022-10-06 00:38:36 +0000
committerGuillem Jover <guillem@hadrons.org>2022-10-06 00:39:38 +0000
commitf476c0a09c0d0dd22d22f447cae9fa02eb560506 (patch)
treed682b49ff6a7821ff6f5686f6961d608f50e25a2 /src/util/replace.h
parentd54aaf2483df6a1f98fadc09004157e657b7f73e (diff)
Switch from libbsd to libbsd-overlay
This is the preferred usage form for libbsd, as it makes the code more portable and requires no special includes for libbsd, by transparently injects the needed standard headers that would be used on a BSD. Signed-off-by: Guillem Jover <guillem@hadrons.org>
Diffstat (limited to 'src/util/replace.h')
-rw-r--r--src/util/replace.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/util/replace.h b/src/util/replace.h
index 53a81a2..367a1fd 100644
--- a/src/util/replace.h
+++ b/src/util/replace.h
@@ -32,9 +32,6 @@
#include <X11/Xfuncproto.h>
#include <stdlib.h>
-#if defined(HAVE_LIBBSD) && defined(HAVE_REALLOCARRAY)
-#include <bsd/stdlib.h> /* for reallocarray */
-#endif
#ifndef HAVE_REALLOCARRAY
extern _X_HIDDEN void *
@@ -46,9 +43,6 @@ reallocarray(void *optr, size_t nmemb, size_t size);
#endif
#include <string.h>
-#if defined(HAVE_LIBBSD) && defined(HAVE_STRLCPY)
-#include <bsd/string.h> /* for strlcpy, strlcat */
-#endif
#ifndef HAVE_STRLCPY
extern _X_HIDDEN size_t