define _GNU_SOURCE before including pwd.h for putpwent

This commit is contained in:
Leo 2020-09-01 11:14:11 -03:00
parent b33509e946
commit f28ec562b8

View File

@ -35,6 +35,9 @@
#include <sys/types.h>
#include <crypt.h>
#include <shadow.h>
/* Needed for putpwent */
#define _GNU_SOURCE
#include <pwd.h>
#ifndef SECS_PER_DAY