You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
2.5 KiB
84 lines
2.5 KiB
1 year ago
|
Include <unistd.h> for the setresuid and setresgid functions,
|
||
|
to avoid an implicit function declaration.
|
||
|
|
||
|
Submitted upstream: <https://github.com/opendnssec/opendnssec/pull/843>
|
||
|
|
||
|
diff --git a/configure b/configure
|
||
|
index bf515cde3d4fab71..52d2885d6a6ef546 100755
|
||
|
--- a/configure
|
||
|
+++ b/configure
|
||
|
@@ -21101,6 +21101,7 @@ else
|
||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||
|
/* end confdefs.h. */
|
||
|
|
||
|
+#include <unistd.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <errno.h>
|
||
|
int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
|
||
|
@@ -21143,6 +21144,7 @@ else
|
||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||
|
/* end confdefs.h. */
|
||
|
|
||
|
+#include <unistd.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <errno.h>
|
||
|
int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
|
||
|
diff --git a/m4/acx_broken_setres.m4 b/m4/acx_broken_setres.m4
|
||
|
index 374cee0b0b8ef196..467db9170a319170 100644
|
||
|
--- a/m4/acx_broken_setres.m4
|
||
|
+++ b/m4/acx_broken_setres.m4
|
||
|
@@ -4,6 +4,7 @@ AC_DEFUN([ACX_BROKEN_SETRES],[
|
||
|
AC_MSG_CHECKING(if setresuid seems to work)
|
||
|
AC_RUN_IFELSE(
|
||
|
[AC_LANG_SOURCE([[
|
||
|
+#include <unistd.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <errno.h>
|
||
|
int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
|
||
|
@@ -20,6 +21,7 @@ int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
|
||
|
AC_MSG_CHECKING(if setresgid seems to work)
|
||
|
AC_RUN_IFELSE(
|
||
|
[AC_LANG_SOURCE([[
|
||
|
+#include <unistd.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <errno.h>
|
||
|
int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
|
||
|
commit 27290c5fcd065a5a857d37236e7f79121e303d0a
|
||
|
Author: Mathieu Mirmont <mat@parad0x.org>
|
||
|
Date: Sun Dec 1 18:43:53 2019 +0100
|
||
|
|
||
|
common: add missing util.h header
|
||
|
|
||
|
diff --git a/common/scheduler/task.c b/common/scheduler/task.c
|
||
|
index cfdbd2d101aae795..9c09dc1893363abe 100644
|
||
|
--- a/common/scheduler/task.c
|
||
|
+++ b/common/scheduler/task.c
|
||
|
@@ -39,6 +39,7 @@
|
||
|
#include "status.h"
|
||
|
#include "duration.h"
|
||
|
#include "file.h"
|
||
|
+#include "util.h"
|
||
|
#include "log.h"
|
||
|
|
||
|
static const char* task_str = "task";
|
||
|
commit 5422819c17c02e6069328b2f5e4bef6fe5c179df
|
||
|
Author: Mathieu Mirmont <mat@parad0x.org>
|
||
|
Date: Sun Dec 1 17:57:36 2019 +0100
|
||
|
|
||
|
enforcer: remove remove strptime build warning
|
||
|
|
||
|
diff --git a/enforcer/src/daemon/time_leap_cmd.c b/enforcer/src/daemon/time_leap_cmd.c
|
||
|
index f1ee21b87529c136..5baef1b6ff7c4cc2 100644
|
||
|
--- a/enforcer/src/daemon/time_leap_cmd.c
|
||
|
+++ b/enforcer/src/daemon/time_leap_cmd.c
|
||
|
@@ -26,8 +26,8 @@
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
-#include <getopt.h>
|
||
|
#include "config.h"
|
||
|
+#include <getopt.h>
|
||
|
|
||
|
#include "file.h"
|
||
|
#include "duration.h"
|