[PATCH] mknod: Include sys/sysmacros.h for makedev

Shaun Jackman sjackman at gmail.com
Tue Mar 21 23:21:11 UTC 2006


This patch applies the same logic used in r11831 to mknod.

------------------------------------------------------------------------
r11831 | landley | 2005-10-11 14:17:30 -0600 (Tue, 11 Oct 2005) | 2 lines

There doesn't seem to be a standard header for makedev(), but this is close.

Cheers,
Shaun

2006-03-21  Shaun Jackman  <sjackman at gmail.com>

	* coreutils/mknod.c: Include sys/sysmacros.h for makedev.

Index: coreutils/mknod.c
===================================================================
--- coreutils/mknod.c	(revision 14594)
+++ coreutils/mknod.c	(working copy)
@@ -25,6 +25,7 @@
 #include <stdlib.h>
 #include <string.h>
  #include <sys/stat.h>
+#include <sys/sysmacros.h>	/* For makedev */
 #include <unistd.h>
  #include "busybox.h"
  #include "libcoreutils/coreutils.h"


More information about the busybox mailing list