Fix double declaration of _XOPEN_SOURCE

The adminusers.c file declared it twice; first explicitly and then
implicitly by including cdefs.h.
This commit is contained in:
Markus Mäkelä
2017-01-04 05:53:34 +02:00
parent f78db1aab9
commit 0215ad32a1
2 changed files with 2 additions and 4 deletions

View File

@ -10,13 +10,11 @@
* of this software will be governed by version 2 or later of the General
* Public License.
*/
#include <maxscale/cdefs.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 700
#endif
#include <unistd.h>
#include <crypt.h>
#include <maxscale/users.h>