[PATCH:xmodmap] include config.h before stdio.h & other system headers

Peter Hutterer peter.hutterer at who-t.net
Wed Apr 25 17:23:38 PDT 2012


On Tue, Apr 24, 2012 at 03:16:57PM -0700, Alan Coopersmith wrote:
> Ensures definitions like _GNU_SOURCE are visible when needed.
> 
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>

Cheers,
  Peter

> ---
>  exec.c    |    4 ++++
>  pf.c      |    4 ++++
>  xmodmap.c |    4 ++++
>  3 files changed, 12 insertions(+)
> 
> diff --git a/exec.c b/exec.c
> index dbcb669..419b10e 100644
> --- a/exec.c
> +++ b/exec.c
> @@ -54,6 +54,10 @@ from The Open Group.
>   * original xmodmap, written by David Rosenthal, of Sun Microsystems.
>   */
>  
> +#ifdef HAVE_CONFIG_H
> +# include "config.h"
> +#endif
> +
>  #include <X11/Xos.h>
>  #include <X11/Xlib.h>
>  #include <stdio.h>
> diff --git a/pf.c b/pf.c
> index 0eb0f55..3f0c3f4 100644
> --- a/pf.c
> +++ b/pf.c
> @@ -26,6 +26,10 @@ from The Open Group.
>  
>  */
>  
> +#ifdef HAVE_CONFIG_H
> +# include "config.h"
> +#endif
> +
>  #include <X11/Xos.h>
>  #include <X11/Xlib.h>
>  #include <stdio.h>
> diff --git a/xmodmap.c b/xmodmap.c
> index 58a8e70..0f89629 100644
> --- a/xmodmap.c
> +++ b/xmodmap.c
> @@ -26,6 +26,10 @@ from The Open Group.
>  
>  */
>  
> +#ifdef HAVE_CONFIG_H
> +# include "config.h"
> +#endif
> +
>  #include <X11/Xos.h>
>  #include <X11/Xlib.h>
>  #include <stdio.h>
> -- 
> 1.7.9.2
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 


More information about the xorg-devel mailing list