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

@ -20,7 +20,7 @@
* - Its purpose is the same as that of x86_64-linux-gnu/sys/cdefs.h, that is,
* it defines things that are dependent upon the compilation environment.
* - Since this *must* be included as the very first header by all other MaxScale
* headers, it allows you to redfine things globally, should that be necessary,
* headers, it allows you to redefine things globally, should that be necessary,
* for instance, when debugging something.
* - Global constants applicable across the line can be defined here.
*/

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>