mirror of
https://github.com/postgres/postgres.git
synced 2026-03-01 21:01:12 -05:00
Change BSD44_derived to __FreeBSD__ in numutils.c (need to know what NetBSD is referred to as...someone?)
12 lines
284 B
Bash
Executable file
12 lines
284 B
Bash
Executable file
#!/bin/sh
|
|
/bin/cat >tmp.c <<EOF
|
|
extern int foo;
|
|
EOF
|
|
for i in `cc -v -c tmp.c 2>&1`
|
|
do
|
|
case "$i" in
|
|
-D*) echo "$i" | /usr/bin/sed 's/^-D//';;
|
|
-A*) /bin/test "2.7.2.1" && echo "$i" | /usr/bin/sed 's/^-A\(.*\)(\(.*\))/\1=\2/';;
|
|
esac
|
|
done
|
|
/bin/rm -f try.c
|