We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aad1530 commit bd7791dCopy full SHA for bd7791d
2 files changed
configure.ac
@@ -95,8 +95,10 @@ AC_SUBST([regular_CFLAGS])
95
# Checks for header files.
96
PKG_CHECK_MODULES([x11], [x11])
97
PKG_CHECK_MODULES([glib], [glib-2.0])
98
-AS_IF([test "x$with_pidfile" != xno],
99
- [PKG_CHECK_MODULES([libbsd], [libbsd >= 0.2.0])])
+AS_IF([test "x$with_pidfile" != xno], [
+ PKG_CHECK_MODULES([libbsd], [libbsd >= 0.2.0])
100
+ PKG_CHECK_EXISTS([libbsd = 0.2.0], [AC_DEFINE(HAVE_LIBBSD_020)])
101
+ ])
102
103
AC_CONFIG_FILES([Makefile])
104
AC_OUTPUT
src/bumblebeed.c
@@ -34,8 +34,12 @@
34
#include <errno.h>
35
#include <getopt.h>
36
#ifdef WITH_PIDFILE
37
+#ifdef HAVE_LIBBSD_020
38
+#include <libutil.h>
39
+#else
40
#include <bsd/libutil.h>
41
#endif
42
+#endif
43
#include "bbconfig.h"
44
#include "bbsocket.h"
45
#include "bblogger.h"
0 commit comments