Couple of 1 liner compile fixes. Missing header and missing cast.
authordespair <despair@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 18 Feb 2001 15:09:37 +0000 (15:09 +0000)
committerdespair <despair@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 18 Feb 2001 15:09:37 +0000 (15:09 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@150 d7cf8633-e32d-0410-b094-e92efae38249

makefile
net_udp.c
sys_linux.c

index d7c6e222838ae6190f5089e589a6b555a129c586..a05723648ff53ce7ac7f813c745839229fffb6ec 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,7 +1,7 @@
 SND=snd_alsa_0_5.o
 OBJECTS= buildnumber.o cd_linux.o chase.o cl_demo.o cl_input.o cl_main.o cl_parse.o cl_tent.o cmd.o common.o console.o cpu_noasm.o crc.o cvar.o fractalnoise.o gl_draw.o gl_poly.o gl_refrag.o gl_rmain.o gl_rmisc.o gl_rsurf.o gl_screen.o gl_warp.o host.o host_cmd.o image.o keys.o mathlib.o menu.o model_alias.o model_brush.o model_shared.o model_sprite.o net_bsd.o net_udp.o net_dgrm.o net_loop.o net_main.o net_vcr.o pr_cmds.o pr_edict.o pr_exec.o r_light.o r_part.o sbar.o snd_dma.o snd_mem.o snd_mix.o $(SND) sv_main.o sv_move.o sv_phys.o sv_user.o sys_linux.o transform.o view.o wad.o world.o zone.o vid_shared.o palette.o r_crosshairs.o gl_textures.o gl_models.o r_sprites.o r_modules.o
 
-OPTIMIZATIONS= -O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations
+OPTIMIZATIONS= -O6 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -mpentiumpro -mcpu=i686 -march=i686 -fno-strict-aliasing
 
 CFLAGS= -Wall -Werror -I/usr/X11R6/include -I/usr/include/glide $(OPTIMIZATIONS)
 #CFLAGS= -Wall -Werror -I/usr/X11/include -ggdb $(OPTIMIZATIONS)
index d98ed0ff3f914bc7fc4c4a8dea80516b739e694a..f21c3ebd73b6f8f530e9f6b6400cd19c7710d4c3 100644 (file)
--- a/net_udp.c
+++ b/net_udp.c
@@ -240,7 +240,7 @@ int UDP_CheckNewConnections (void)
                Sys_Error ("UDP: ioctlsocket (FIONREAD) failed\n");
        if (available)
                return net_acceptsocket;
-       recvfrom (net_acceptsocket, buff, 0, 0, &from, &fromlen);
+       recvfrom (net_acceptsocket, buff, 0, 0, (struct sockaddr *) &from, &fromlen);
        return -1;
 }
 
index c5b9b1358f5e0b23fbcc98c3881e5d415a395f9d..da6ae1d7f5748b2d8de8d78e86f11ec50b5e45a0 100644 (file)
@@ -17,6 +17,7 @@
 #include <string.h>
 #include <ctype.h>
 #include <errno.h>
+#include <time.h>
 
 #include "quakedef.h"