Changeset 2e5b2f9


Ignore:
Timestamp:
Jan 5, 2011, 1:35:25 PM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
release-1.7
Children:
7013eb9
Parents:
f85278b
git-author:
David Benjamin <davidben@mit.edu> (12/15/10 16:03:35)
git-committer:
David Benjamin <davidben@mit.edu> (01/05/11 13:35:25)
Message:
Fix up feature macros somewhat

Set _XOPEN_SOURCE to 500 to target a sufficiently new standard. Also
define _BSD_SOURCE because zephyr needs a BSD extension (caddr_t).
Apparently both of these bugs were masked on Debathena because Ubuntu's
perl defines _GNU_SOURCE which turns everything on.

This also removes the need for __EXTENSIONS__ to get struct timeval on
Solaris. But we can't quite get rid of it yet because we use strcasecmp
and MAXHOSTNAMELEN.

Reported-By: Alex Vandiver <alexmv@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r2ff0693 r2e5b2f9  
    139139                                 test "$HAVE_DES_ECB_ENCRYPT"])
    140140
    141 AM_CFLAGS="$AM_CFLAGS -D_XOPEN_SOURCE"
    142 dnl __EXTENSIONS__ is needed for struct timeval on Solaris when
    143 dnl _XOPEN_SOURCE is defined.
     141AM_CFLAGS="$AM_CFLAGS -D_XOPEN_SOURCE=500"
     142dnl Define _BSD_SOURCE because zephyr needs caddr_t.
     143AM_CFLAGS="$AM_CFLAGS -D_BSD_SOURCE"
     144dnl Define __EXTENSIONS__ for strcasecmp on Solaris.
    144145AM_CFLAGS="$AM_CFLAGS -D__EXTENSIONS__"
    145146
Note: See TracChangeset for help on using the changeset viewer.