summaryrefslogtreecommitdiff
path: root/src/proc.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2026-05-09 17:56:54 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2026-05-09 17:56:54 +0200
commit15612a69dd5bb9dbad09e7095dc69ba96997c23b (patch)
tree36fd5957c604f96e283229e0429aed345b4c5583 /src/proc.c
parent9a01a96702fcc37ed10d0bece56bfddf4387b274 (diff)
parent1f8a958cf61bc473bb0aa05a133ad40412910811 (diff)
Update upstream source from tag 'upstream/5.4'
Update to upstream version '5.4' with Debian dir dfa54d2313558d6119cccdcfa146b3f044f439d5
Diffstat (limited to 'src/proc.c')
-rw-r--r--src/proc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/proc.c b/src/proc.c
index c8957b6..a4bc6ab 100644
--- a/src/proc.c
+++ b/src/proc.c
@@ -1,6 +1,6 @@
/*
* Process management
- * Copyright Jan Engelhardt, 2008-2009
+ * Copyright Jan Engelhardt, 2026
*
* This file is part of libHX. libHX is free software; you can
* redistribute it and/or modify it under the terms of the GNU Lesser
@@ -10,6 +10,10 @@
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
+#define _DEFAULT_SOURCE
+#ifdef __CYGWIN__
+# define _BSD_SOURCE /* initgroups */
+#endif
#include "internal.h"
#include <errno.h>
#include <limits.h>
@@ -21,7 +25,6 @@
#ifdef _WIN32
# include <winsock2.h>
#endif
-
#if defined(HAVE_INITGROUPS) && defined(HAVE_SETGID)
#include <grp.h>
#include <pwd.h>