From 1ea7f3745d3c5af54cf943dd8a2ca5b5804a521e Mon Sep 17 00:00:00 2001 From: despair Date: Sun, 18 Feb 2001 15:09:37 +0000 Subject: [PATCH] Couple of 1 liner compile fixes. Missing header and missing cast. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@150 d7cf8633-e32d-0410-b094-e92efae38249 --- makefile | 2 +- net_udp.c | 2 +- sys_linux.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index d7c6e222..a0572364 100644 --- 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) diff --git a/net_udp.c b/net_udp.c index d98ed0ff..f21c3ebd 100644 --- 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; } diff --git a/sys_linux.c b/sys_linux.c index c5b9b135..da6ae1d7 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -17,6 +17,7 @@ #include #include #include +#include #include "quakedef.h" -- 2.39.2