same problem on Fedora 8 64 bit :
gcc -g -O2 -Wall -I/usr/local/libspf2/include -DHAVE_DATA_CALLBACK
-DCONFFILE=\"/usr/local/etc/mail/greylist.conf\"
-DDUMPFILE=\"/usr/local/var/milter-greylist/greylist.db\"
-D_BSD_SOURCE -I. -I. -c -o prop.o prop.c
prop.c: In function 'prop_glob_validate':
prop.c:200: error: 'FNM_CASEFOLD' undeclared (first use in this function)
and there is also an error before regarding undeclared INFTIM :
gcc -g -O2 -Wall -I/usr/local/libspf2/include -DHAVE_DATA_CALLBACK
-DCONFFILE=\"/usr/local/etc/mail/greylist.conf\"
-DDUMPFILE=\"/usr/local/var/milter-greylist/greylist.db\"
-D_BSD_SOURCE -I. -I. -c -o sync.o sync.c
sync.c: In function 'sync_waitdata':
sync.c:1325: error: 'INFTIM' undeclared (first use in this function)
Once upon a time (Wed, 17 Jun 2015 10:48:30 +0000), "'Bruncsak,
Attila' attila.bruncsak@... [milter-greylist]"
<milter-greylist@yahoogroups.com> wrote :
>> Support glob(7) pattern matching for properties
>>
>
> I got:
>
> cc -g -I/usr/local/src/sendmail/libmilter/include -DUSE_SPAMD
> -DHAVE_DATA_CALLBACK -pthread -D_XOPEN_SOURCE=500 -D_OSF_SOURCE
> -DCONFFILE=\"/etc/mail/greylist.conf\"
> -DDUMPFILE=\"/var/milter-greylist/greylist.db\" -D_BSD_SOURCE -I.
> -I. -c prop.c
> cc: Error: prop.c, line 200: In this statement, "FNM_CASEFOLD" is
> not declared. (undeclared)
> if (fnmatch(up->up_value, string, FNM_CASEFOLD) == 0) {
> --------------------------------------------------^
> *** Exit 1
> Stop.
>
> From "man fnmatch" on Linux:
>
> CONFORMING TO
> POSIX.2. The FNM_FILE_NAME, FNM_LEADING_DIR, and
> FNM_CASEFOLD flags are GNU extensions.
>
> Is everybody having that GNU extension (including BSD),
> only my old Tru64 UNIX misses it?
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.