include grp.h, include bsd-compat.h first, since it defines _GNU_SOURCE,

used by other headers
This commit is contained in:
Alexandre Ratchov 2010-09-03 11:48:32 +02:00
parent 9870bef8b9
commit 6078ffd6b8
1 changed files with 4 additions and 3 deletions

View File

@ -14,6 +14,9 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifdef COMPAT_STRTONUM
#include "bsd-compat.h"
#endif
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/stat.h>
@ -23,6 +26,7 @@
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
#include <limits.h>
#include <pwd.h>
#include <signal.h>
@ -43,9 +47,6 @@
#ifdef DEBUG
#include "dbg.h"
#endif
#ifdef COMPAT_STRTONUM
#include "bsd-compat.h"
#endif
/*
* unprivileged user name