Use AC_USE_SYSTEM_EXTENSIONS

Defines _GNU_SOURCE for us.
http://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Posix-Variants.html

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2013-08-26 13:08:12 +10:00
parent da425202c1
commit a8871e7aea
5 changed files with 1 additions and 4 deletions

View file

@ -8,6 +8,7 @@ AC_INIT([libevdev],
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_USE_SYSTEM_EXTENSIONS
AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])

View file

@ -20,7 +20,6 @@
* OF THIS SOFTWARE.
*/
#define _GNU_SOURCE
#include <config.h>
#include <fcntl.h>
#include <poll.h>

View file

@ -20,7 +20,6 @@
* OF THIS SOFTWARE.
*/
#define _GNU_SOURCE
#include <config.h>
#include <fcntl.h>
#include <poll.h>

View file

@ -20,7 +20,6 @@
* OF THIS SOFTWARE.
*/
#define _GNU_SOURCE
#include <config.h>
#include <linux/input.h>
#include <errno.h>

View file

@ -20,7 +20,6 @@
* OF THIS SOFTWARE.
*/
#define _GNU_SOURCE
#include <config.h>
#include <linux/input.h>
#include <errno.h>