need <sys/types.h> for mode_t
This commit is contained in:
parent
0e1266ef90
commit
56d51abd1f
3
Build.sh
3
Build.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.420 2009/08/08 13:08:48 tg Exp $'
|
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.421 2009/08/08 13:52:35 tg Exp $'
|
||||||
#-
|
#-
|
||||||
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009
|
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009
|
||||||
# Thorsten Glaser <tg@mirbsd.org>
|
# Thorsten Glaser <tg@mirbsd.org>
|
||||||
@ -1209,6 +1209,7 @@ ac_test setmode mknod 1 <<-'EOF'
|
|||||||
/* force a failure: Win32 setmode() is not what we want... */
|
/* force a failure: Win32 setmode() is not what we want... */
|
||||||
int main(void) { return (thiswillneverbedefinedIhope()); }
|
int main(void) { return (thiswillneverbedefinedIhope()); }
|
||||||
#else
|
#else
|
||||||
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
int main(int ac, char *av[]) { return (getmode(setmode(av[0]),
|
int main(int ac, char *av[]) { return (getmode(setmode(av[0]),
|
||||||
(mode_t)ac)); }
|
(mode_t)ac)); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user