Menu

#271 Patch to add OS X compatibility to ccXStream/XBMSP

open
nobody
5
2003-09-09
2003-05-09
Mike Hill
No

I made a few changes to get Mac OS X compatibility out
of ccxstream (my patch is based off of my changes and
he ccxstream-1.0.15.tar.gz source).

Basically there were two areas I needed to change.

1) OS X doesn't support the socklen_t data type. All
occurences of
"socklen_t" need to be replaced with "int". This
effects ccxstream.c
ccxstream.h and ccxdiscover.c.

Basically I just added some simple #ifdefs to check for
__APPLE__ and if defined replace socklen_t with int.

2) "-readline" needs to be removed from the LDFLAGS in
the makefile.

Doing those things allowed me to run the makefile to
compile binaries
for ccxstream and ccxtest with no warnings or errors
and everything
works fine.

Since I am not a makefile expert I just added a
Makefile.osx to the mix that doesn't have -readline in
it. It would be cleaner to have a single makefile
that can handle this automatically, or do a configure
and generate proper make files on supported platforms.

I also added a readme.osx with details on how to make
it for OSX (i.e. make -f Makefile.osx). Feel free to
yank this file! :)

If there are any issues with this patch file please
email me and I can put my changes up on the web for you
guys.

mhill AT hillsoftware DOT com

Discussion

  • Mike Hill

    Mike Hill - 2003-05-09

    Patch file

     
  • Andreas Setterlind

    • summary: Patch to add OS X compatibility --> Patch to add OS X compatibility to ccXStream/XBMSP
     
  • Nobody/Anonymous

    Logged In: NO

    Moi sur jaguar server Xbmsx 0,8 ou 0,9 ne passent pas, je n'arrive pas
    a changer le port 1400 ni meme l'active ??????

    Attention sur Jaguar Server 10.2.8 !!

    Avez vous test car je fais la passerelle avec un PC et a ne me
    conviens pas ... Merci .... ;-)

     

Log in to post a comment.