Fixes to the recent patches

This commit is contained in:
Alexander S. Aganichev
2002-09-23 09:23:45 +00:00
parent c283d9e260
commit dbeb60a30e
7 changed files with 17 additions and 9 deletions

View File

@@ -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>

View File

@@ -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);

View 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

View File

@@ -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