<sys/sysmacros.h> contains major/minor/makedev on Linux 2.0

This commit is contained in:
tg 2007-01-17 23:04:19 +00:00
parent 4c82f74d2b
commit c3de1d7564
2 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $MirOS: src/bin/mksh/Build.sh,v 1.130 2007/01/17 22:59:25 tg Exp $
# $MirOS: src/bin/mksh/Build.sh,v 1.131 2007/01/17 23:04:19 tg Exp $
#-
# Env: CC, CFLAGS, CPP, CPPFLAGS, LDFLAGS, LIBS, NOWARN, NROFF, TARGET_OS
# CPPFLAGS recognised: MKSH_SMALL MKSH_NOPWNAM
@ -294,6 +294,11 @@ ac_test sys_param_h '' '<sys/param.h>' <<'EOF'
int main(void) { return (0); }
EOF
ac_test sys_sysmacros_h '' '<sys/sysmacros.h>' <<'EOF'
#include <sys/sysmacros.h>
int main(void) { return (0); }
EOF
ac_test libgen_h '' '<libgen.h>' <<'EOF'
#include <libgen.h>
int main(void) { return (0); }

5
sh.h
View File

@ -8,7 +8,7 @@
/* $OpenBSD: c_test.h,v 1.4 2004/12/20 11:34:26 otto Exp $ */
/* $OpenBSD: tty.h,v 1.5 2004/12/20 11:34:26 otto Exp $ */
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.101 2007/01/17 22:51:46 tg Exp $"
#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.102 2007/01/17 23:04:19 tg Exp $"
#define MKSH_VERSION "R29 2007/01/17"
#if HAVE_SYS_PARAM_H
@ -44,6 +44,9 @@
#include <sys/mman.h>
#include <sys/resource.h>
#include <sys/stat.h>
#if HAVE_SYS_SYSMACROS_H
#include <sys/sysmacros.h>
#endif
#include <sys/wait.h>
#include <dirent.h>
#include <errno.h>