Files
cdesktop/cde/programs/dtksh/ksh93/src/lib/libast/features/param.sh

24 lines
558 B
Bash

: $XConsortium: param.sh /main/2 1996/05/10 16:43:26 drk $
: generate "<sys/param.h> + <sys/types.h> + <sys/stat.h>" include sequence
eval $1
shift
for i in "#include <sys/param.h>" "#include <sys/param.h>
#ifndef S_IFDIR
#include <sys/stat.h>
#endif" "#include <sys/param.h>
#ifndef S_IFDIR
#include <sys/types.h>
#include <sys/stat.h>
#endif" "#ifndef S_IFDIR
#include <sys/types.h>
#include <sys/stat.h>
#endif"
do echo "$i
struct stat V_stat_V;
F_stat_F() { V_stat_V.st_mode = 0; }" > $tmp.c
if $cc -c $tmp.c >/dev/null
then echo "$i"
break
fi
done