Fixes to the recent patches
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#ifdef _POSIX_SOURCE
|
||||
#ifndef _MSC_VER
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#include <cstdlib>
|
||||
|
@@ -94,8 +94,8 @@ void gareafile::ReadSynchronet(char* tag) {
|
||||
aa.setechoid(sub.code);
|
||||
aa.setdesc(sub.lname);
|
||||
aa.groupid = 0x8000 + sub.grp;
|
||||
if(*sub.echopath)
|
||||
MakePathname(file, sub.echopath, sub.code);
|
||||
if(*sub.data_dir)
|
||||
MakePathname(file, sub.data_dir, sub.code);
|
||||
else
|
||||
MakePathname(file, path, sub.code);
|
||||
aa.setpath(file);
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
#define HAVE_DIRENT_H 1
|
||||
#define STDC_HEADERS 1
|
||||
#ifdef _POSIX_SOURCE
|
||||
#ifndef _MSC_VER
|
||||
#define HAVE_UNISTD_H 1
|
||||
#endif
|
||||
#define HAVE_STRING_H 1
|
||||
|
@@ -55,7 +55,7 @@
|
||||
#define HAVE_FCNTL_H 1
|
||||
|
||||
/* Define if you have the <io.h> header file. */
|
||||
#ifndef _POSIX_SOURCE
|
||||
#ifdef _MSC_VER
|
||||
#define HAVE_IO_H
|
||||
#endif
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
#define HAVE_SYS_TIME_H 1
|
||||
|
||||
/* Define if you have the <unistd.h> header file. */
|
||||
#ifdef _POSIX_SOURCE
|
||||
#ifndef _MSC_VER
|
||||
#define HAVE_UNISTD_H 1
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user