summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--klibc_fixups.h5
-rw-r--r--namedev.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/klibc_fixups.h b/klibc_fixups.h
index a89638ead4..37622c86d6 100644
--- a/klibc_fixups.h
+++ b/klibc_fixups.h
@@ -4,6 +4,11 @@
#define KLIBC_FIXUPS_H
+#define WTERMSIG(status) ((status) & 0x7f)
+#define WEXITSTATUS(status) (((status) & 0xff00) >> 8)
+#define WIFEXITED(status) (WTERMSIG(status) == 0)
+
+
struct group {
char *gr_name; /* group name */
char *gr_passwd; /* group password */
diff --git a/namedev.c b/namedev.c
index 226c1d313f..08cceacda0 100644
--- a/namedev.c
+++ b/namedev.c
@@ -401,12 +401,10 @@ static int exec_callout(struct config_device *dev, char *value, int len)
retval = -1;
}
-#ifndef __KLIBC__
if (!WIFEXITED(status) || (WEXITSTATUS(status) != 0)) {
dbg("callout program status 0x%x", status);
retval = -1;
}
-#endif
}
return retval;
}