Urm. Compiles in FreeBSD with gmake and gcc. So, urm, yeah... Maybe it runs too.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@947 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-04-17 02:22:51 +00:00
parent 4a9c299884
commit 1c47b03601
6 changed files with 3 additions and 23 deletions

View File

@ -242,22 +242,6 @@ typedef struct
extern int hostCacheCount;
extern hostcache_t hostcache[HOSTCACHESIZE];
#if !defined(_WIN32 ) && !defined (__linux__) && !defined (__sun__)
#ifndef htonl
extern unsigned long htonl (unsigned long hostlong);
#endif
#ifndef htons
extern unsigned short htons (unsigned short hostshort);
#endif
#ifndef ntohl
extern unsigned long ntohl (unsigned long netlong);
#endif
#ifndef ntohs
extern unsigned short ntohs (unsigned short netshort);
#endif
#endif
#ifdef IDGODS
qboolean IsID(struct qsockaddr *addr);
#endif

View File

@ -1,6 +1,6 @@
#define PROGSUSED
#include "progsint.h"
#include <malloc.h>
#include <stdlib.h>
typedef struct prmemb_s {
struct prmemb_s *prev;

View File

@ -526,7 +526,7 @@ pbool QCC_PR_Precompiler(void)
}
else if (!strncmp(directive, "include", 7))
{
byte sm;
char sm;
pr_file_p=directive+7;

View File

@ -37,7 +37,6 @@ extern float pm_stepheight;
struct trace_s;
struct q2trace_s;
struct q2pmove_s;
typedef struct q2pmove_s q2pmove_t;

View File

@ -18,6 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "qwsvdef.h"
#include "sys/types.h"
#ifndef CLIENTONLY
#define Q2EDICT_NUM(i) (q2edict_t*)((char *)ge->edicts+i*ge->edict_size)

View File

@ -26,15 +26,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <libc.h>
#endif
#if defined(__linux__) || defined(sun) || defined(__CYGWIN__)
#include <sys/stat.h>
#include <unistd.h>
#include <sys/time.h>
#include <errno.h>
#include <fcntl.h>
#else
#include <sys/dir.h>
#endif
cvar_t sys_nostdout = {"sys_nostdout","0"};
cvar_t sys_extrasleep = {"sys_extrasleep","0"};