Commit ac038e9c authored by Alan Coopersmith's avatar Alan Coopersmith
Browse files

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).
parent 89d70276
/* $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
......@@ -15,7 +15,8 @@ Original mi code written by Keith Packard.
*/
#ifndef XFree86LOADER
#if defined(_XOPEN_SOURCE) || defined(__QNXNTO__)
#if defined(_XOPEN_SOURCE) || defined(__QNXNTO__) \
|| (defined(sun) && defined(__SVR4))
#include <math.h>
#else
#define _XOPEN_SOURCE /* to get prototype for hypot on some systems */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment