Author: Niall Creech Description: Some systems define an enumeration containing R0 in sys/ucontext.h. Changing the name avoids any conflict. Ubuntu-Bug: https://bugs.edge.launchpad.net/ubuntu/+source/predict/+bug/645036 Index: predict-2.2.3/clients/earthtrack/earthtrack.c =================================================================== --- predict-2.2.3.orig/clients/earthtrack/earthtrack.c 2010-09-22 10:16:02.148625844 +0100 +++ predict-2.2.3/clients/earthtrack/earthtrack.c 2010-09-22 10:16:45.895235838 +0100 @@ -49,7 +49,7 @@ #endif char string[625], error; -double R0=6378.16, TWOPI=6.283185307179586, +double LOCAL_R0=6378.16, TWOPI=6.283185307179586, HALFPI=1.570796326794896, deg2rad=1.74532925199e-02; FILE *markerfd=NULL, *greatarcfd=NULL; @@ -259,7 +259,7 @@ ssplat=ssplat*deg2rad; ssplong=ssplong*deg2rad; - beta=(0.5*footprint)/R0; + beta=(0.5*footprint)/LOCAL_R0; for (azi=0; azi<360; azi++) { @@ -570,7 +570,7 @@ circledrawn=1; if (zoom) - radius=(int)(100.0*(R0/footprint)); + radius=(int)(100.0*(LOCAL_R0/footprint)); else radius=50;