aboutsummaryrefslogtreecommitdiff
path: root/have
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-02-10 22:17:20 +0000
committerOmar Polo <op@omarpolo.com>2021-02-10 22:17:20 +0000
commit0b040b99091cee8048cfb4b164f3e0ddfa0d1631 (patch)
tree5d0e35b62e8c89e53e854ad6e4b2f5737627266d /have
parent4ad0601d1857e509687d2466ffa0afaf3a82578c (diff)
fix setproctitle detection on FreeBSD
Diffstat (limited to 'have')
-rw-r--r--have/setproctitle.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/have/setproctitle.c b/have/setproctitle.c
index 69a5f8c..dd3119c 100644
--- a/have/setproctitle.c
+++ b/have/setproctitle.c
@@ -14,7 +14,14 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+/*
+ * FreeBSD has setproctitle in a different header than OpenBSD.
+ */
+
+#include <sys/types.h>
+
#include <stdlib.h>
+#include <unistd.h>
int
main(void)