mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Merge pull request #522 from 9thsector/FreeBSDFixes
FreeBSD Compile Fixes
This commit is contained in:
commit
56cb719d1a
@ -10,6 +10,12 @@
|
||||
#include "types.h"
|
||||
#include "mysql_request_row.h"
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
#endif
|
||||
|
||||
class MySQLRequestResult {
|
||||
private:
|
||||
MYSQL_RES* m_Result;
|
||||
|
||||
@ -46,6 +46,16 @@ extern "C" { //the perl headers dont do this for us...
|
||||
#undef THIS
|
||||
#endif
|
||||
|
||||
//These need to be cleaned up on FreeBSD
|
||||
#ifdef __FreeBSD__
|
||||
#ifdef do_open
|
||||
#undef do_open
|
||||
#endif
|
||||
|
||||
#ifdef do_close
|
||||
#undef do_close
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /*EMU_PERL_H_*/
|
||||
|
||||
|
||||
@ -54,6 +54,17 @@ extern "C" { //the perl headers dont do this for us...
|
||||
#ifdef Zero
|
||||
#undef Zero
|
||||
#endif
|
||||
//These need to be cleaned up on FreeBSD
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#ifdef do_open
|
||||
#undef do_open
|
||||
#endif
|
||||
|
||||
#ifdef do_close
|
||||
#undef do_close
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//so embedded scripts can use xs extensions (ala 'use socket;')
|
||||
EXTERN_C void boot_DynaLoader(pTHX_ CV* cv);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user