Skip to content
Snippets Groups Projects
Commit 180e48af authored by Edilbert's avatar Edilbert
Browse files

make code compatible to OSX 10.10 Yosemite

parent 5a2fafbd
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ fi
#check for C compiler
# put your favourite compiler in front if you have more than one
for MOST_CC in icc gxlc gcc suncc cc NO_CC
for MOST_CC in cc gxlc gcc suncc cc NO_CC
do
`hash 2>/dev/null $MOST_CC`
if [ $? = 0 ] ; then break ; fi
......@@ -188,6 +188,8 @@ elif [ -e "/usr/X11/lib" ] ; then
XLIB_PATH="/usr/X11/lib"
elif [ -e "/usr/lib/X11" ] ; then
XLIB_PATH="/usr/lib/X11"
elif [ -e "/opt/X11" ] ; then
XLIB_PATH="/opt/X11"
fi
if [ -n ${XLIB_PATH} ] ; then
echo "Found Xlib (X11) at: $XLIB_PATH"
......
......@@ -29,6 +29,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/keysym.h>
#include <X11/XKBlib.h>
#define INT int
......@@ -2853,7 +2854,7 @@ int PPPCompiled(void)
strcpy(fn,"puma/run/");
strcat(fn,exec_ppp);
if (fp = fopen(fn,"r"))
if ((fp = fopen(fn,"r")))
{
fclose(fp);
return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment