mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Fix compilation on FreeBSD
Fixes #2073 Changes get_current_dir_name to functionally equivalent getcwd. Also moves "printf.h" to outside linux ifdef.
This commit is contained in:
parent
c675d60bac
commit
01dfcc7d95
1 changed files with 4 additions and 3 deletions
|
@ -51,7 +51,6 @@
|
|||
#include <asm/unistd.h>
|
||||
#include <linux/perf_event.h>
|
||||
#include <sys/mman.h>
|
||||
#include "printf.h"
|
||||
#endif
|
||||
|
||||
#include <SDL.h>
|
||||
|
@ -65,6 +64,7 @@
|
|||
#include "c_cvars.h"
|
||||
#include "palutil.h"
|
||||
#include "st_start.h"
|
||||
#include "printf.h"
|
||||
|
||||
|
||||
#ifndef NO_GTK
|
||||
|
@ -408,7 +408,7 @@ FString I_GetFromClipboard (bool use_primary_selection)
|
|||
|
||||
FString I_GetCWD()
|
||||
{
|
||||
char* curdir = get_current_dir_name();
|
||||
char* curdir = getcwd(NULL,0);
|
||||
if (!curdir)
|
||||
{
|
||||
return "";
|
||||
|
@ -447,7 +447,8 @@ unsigned int I_MakeRNGSeed()
|
|||
|
||||
void I_OpenShellFolder(const char* infolder)
|
||||
{
|
||||
char* curdir = get_current_dir_name();
|
||||
|
||||
char* curdir = getcwd(NULL,0);
|
||||
|
||||
if (!chdir(infolder))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue