[SSSD] [PATCH] UTIL: Fix order of header files.

Jakub Hrozek jhrozek at redhat.com
Mon May 26 14:29:51 UTC 2014


On Sat, May 24, 2014 at 07:09:17PM +0200, Lukas Slebodnik wrote:
> ehlo,
> 
> The older versions of glibc and different implementations of libs
> requires feature macros for enabling function getline.
> 
>        getline(), getdelim():
>            Since glibc 2.10:
>                _POSIX_C_SOURCE >= 200809L || _XOPEN_SOURCE >= 700
>            Before glibc 2.10:
>                _GNU_SOURCE
> 
> All feature macros are in header file config.h and are detected by configure
> script. The header file config.h was included after few other header files.
> The problem is that header files stdio.h is included just once and
> is included from many external header files. We need to include config.h
> before any other header file to prevent problems.
> 
> LS

Builds on F-20 and RHEL6. I haven't tried any BSDs to be honest. But I
trust your testing and I'm happy nothing was broken.

ACK



More information about the sssd-devel mailing list