diff --git a/base/dietlibc/parse-config-9 b/base/dietlibc/parse-config-9 index af4b63772..400ba0609 100644 --- a/base/dietlibc/parse-config-9 +++ b/base/dietlibc/parse-config-9 @@ -119,7 +119,7 @@ if [ "$pkg_dietlibc_useit" = 1 ]; then set_wrapper_and_misc ;; - coreutils|findutils|curl|procps|radiusclient-ng|libpcap|binutils|udhcp|file|libxml|lvm2|iputils) + coreutils|findutils|curl|procps|radiusclient-ng|libpcap|binutils|udhcp|file|libxml|lvm2|iputils|hotplug2) echo_status "Enabling non-portable BSD features." var_append CC_WRAPPER_INSERT " " "-D_BSD_SOURCE" set_wrapper_and_misc diff --git a/base/hotplug2/dietlibc.patch b/base/hotplug2/dietlibc.patch new file mode 100644 index 000000000..a85bb57f8 --- /dev/null +++ b/base/hotplug2/dietlibc.patch @@ -0,0 +1,20 @@ +--- ./hotplug2.c.orig 2007-08-15 16:36:03.000000000 -0400 ++++ ./hotplug2.c 2007-08-15 16:39:05.000000000 -0400 +@@ -13,6 +13,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -27,6 +28,9 @@ + #include "rules.h" + #include "childlist.h" + ++#ifndef WAIT_ANY ++#define WAIT_ANY (pid_t)-1 ++#endif + #define TERMCONDITION (persistent == 0 && \ + coldplug_p == FORK_FINISHED && \ + child == NULL && \