]> Zhao Yanbai Git Server - minix.git/commitdiff
mkfs.mfs: __dead and __UNCONST are unknown on Linux
authorThomas Veerman <thomas@minix3.org>
Mon, 26 Nov 2012 16:18:13 +0000 (16:18 +0000)
committerThomas Veerman <thomas@minix3.org>
Mon, 26 Nov 2012 16:18:32 +0000 (16:18 +0000)
Including nbtool_config.h takes care of that deficiency when cross
compiling.

usr.sbin/mkfs.mfs/mkfs.c

index 8cb7be90b81327a306e3d3620cd762c26c1a855e..f5c7bc6ad70af1291dd4a917f360baf16d4e34ff 100644 (file)
  * compatible with the original version 1 and 2 file system layout.
  */
 
+#if HAVE_NBTOOL_CONFIG_H
+#include "nbtool_config.h"
+#endif
+
+#include <sys/cdefs.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <stdio.h>