freebsd-ports/games/foobillard/files/patch-billard3d.c
FUJISHIMA Satsuki bb5a27fdce get rid of libgnugetopt dependency for -CURRENT,
use USE_GETOPT_LONG instead.
convert getopt_long_only() to getopt_long().
2003-07-14 02:36:32 +00:00

29 lines
950 B
C

--- src/billard3d.c.orig Thu May 1 08:32:10 2003
+++ src/billard3d.c Mon Jul 7 04:29:04 2003
@@ -24,7 +24,7 @@
#include <string.h>
#include <math.h>
#include <unistd.h>
-#include <endian.h>
+#include <sys/endian.h>
#ifndef USE_SDL
#include <GL/glut.h>
@@ -4270,7 +4270,7 @@
/* config file */
load_config( &confv, &confc, argv, argc );
- while( ( act_option = getopt_long_only(confc, confv, "+", long_options, &option_index) ) >= 0){
+ while( ( act_option = getopt_long(confc, confv, "+", long_options, &option_index) ) >= 0){
process_option(act_option);
}
DPRINTF("main:rgstereo=%d",options_rgstereo_on);
@@ -4359,7 +4359,7 @@
fread( &ball_ball_snd.data[SOUND_NULLOFFS*2], 1, ball_ball_snd.len-SOUND_NULLOFFS*2*2 , f );
fclose(f);
-#if __BYTE_ORDER == __BIG_ENDIAN
+#if _BYTE_ORDER == _BIG_ENDIAN
{
char *snd=ball_ball_snd.data;
for(i=0;i<ball_ball_snd.len;i+=2)