Changeset 569f0bd


Ignore:
Timestamp:
Jan 5, 2011, 1:32:47 PM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
c7fe23e
Parents:
5f8ec6b
git-author:
David Benjamin <davidben@mit.edu> (12/15/10 16:03:35)
git-committer:
David Benjamin <davidben@mit.edu> (01/05/11 13:32:47)
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

    re974152 r569f0bd  
    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.