diff --git a/include/os.h b/include/os.h index bb3348b18..7db24088f 100644 --- a/include/os.h +++ b/include/os.h @@ -50,16 +50,13 @@ SOFTWARE. #include "misc.h" #include #include +#if defined(HAVE_REALLOCARRAY) +#include /* for reallocarray */ +#endif #include #ifdef MONOTONIC_CLOCK #include #endif -#if defined(HAVE_LIBBSD) && defined(HAVE_REALLOCARRAY) -#include /* for reallocarray */ -#endif -#if defined(HAVE_LIBBSD) && defined(HAVE_STRLCPY) -#include /* for strlcpy, strlcat */ -#endif #define SCREEN_SAVER_ON 0 #define SCREEN_SAVER_OFF 1 diff --git a/meson.build b/meson.build index 515cc44ea..0279ea211 100644 --- a/meson.build +++ b/meson.build @@ -98,7 +98,7 @@ xshmfence_dep = dependency('xshmfence', version: '>= 1.1', required: false) xwaylandproto_dep = dependency('xwaylandproto', version: '>= 1.0', fallback: ['xorgproto', 'ext_xorgproto'], required: false) pixman_dep = dependency('pixman-1') -libbsd_dep = dependency('libbsd', required: false) +libbsd_dep = dependency('libbsd-overlay', required: false) xkbcomp_dep = dependency('xkbcomp', required: false) xkbfile_dep = dependency('xkbfile') xfont2_dep = dependency('xfont2', version: '>= 2.0') diff --git a/os/auth.c b/os/auth.c index 611e4efb1..243d3c5a8 100644 --- a/os/auth.c +++ b/os/auth.c @@ -46,9 +46,7 @@ from The Open Group. #ifdef WIN32 #include #endif -#ifdef HAVE_LIBBSD -#include /* for arc4random_buf() */ -#endif +#include /* for arc4random_buf() */ struct protocol { unsigned short name_length;