Browse Source

Fixed hotplug2 to compile against dietlibc

early
Alejandro Mery 18 years ago
parent
commit
fc1f4e3290
  1. 2
      base/dietlibc/parse-config-9
  2. 20
      base/hotplug2/dietlibc.patch

2
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

20
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 <unistd.h>
#include <stdlib.h>
#include <errno.h>
+#include <libgen.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>
@@ -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 && \
Loading…
Cancel
Save