Don't define _XOPEN_SOURCE before including math.h on Solaris - it's not
needed on older releases, and breaks builds on Solaris 10. (Same as bugzilla #189).
This commit is contained in:
parent
89d7027638
commit
ac038e9cc6
|
@ -1,5 +1,5 @@
|
||||||
/* $XFree86: xc/programs/Xserver/hw/xfree86/xaa/xaaWideLine.c,v 1.10 2001/11/16 16:47:56 dawes Exp $ */
|
/* $XFree86: xc/programs/Xserver/hw/xfree86/xaa/xaaWideLine.c,v 1.10 2001/11/16 16:47:56 dawes Exp $ */
|
||||||
|
/* $XdotOrg: $ */
|
||||||
/*
|
/*
|
||||||
|
|
||||||
XAAPolylinesWideSolid does not maintain a span list and subsequently does
|
XAAPolylinesWideSolid does not maintain a span list and subsequently does
|
||||||
|
@ -15,7 +15,8 @@ Original mi code written by Keith Packard.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef XFree86LOADER
|
#ifndef XFree86LOADER
|
||||||
#if defined(_XOPEN_SOURCE) || defined(__QNXNTO__)
|
#if defined(_XOPEN_SOURCE) || defined(__QNXNTO__) \
|
||||||
|
|| (defined(sun) && defined(__SVR4))
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#else
|
#else
|
||||||
#define _XOPEN_SOURCE /* to get prototype for hypot on some systems */
|
#define _XOPEN_SOURCE /* to get prototype for hypot on some systems */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user