4279f88857
Build system of goggles entirely changed. Totally funky, but still more fun than autoconf junk !
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
$OpenBSD: patch-src_FXFile_cpp,v 1.1 2005/05/07 11:53:03 espie Exp $
|
|
--- src/FXFile.cpp.orig Sat May 7 12:08:27 2005
|
|
+++ src/FXFile.cpp Sat May 7 12:10:19 2005
|
|
@@ -102,7 +102,7 @@ FXString FXFile::getEnvironment(const FX
|
|
// Get current user name
|
|
FXString FXFile::getCurrentUserName(){
|
|
#ifndef WIN32
|
|
-#ifdef FOX_THREAD_SAFE
|
|
+#if defined(FOX_THREAD_SAFE) && !defined(__OpenBSD__)
|
|
struct passwd pwdresult,*pwd;
|
|
char buffer[1024];
|
|
if(getpwuid_r(geteuid(),&pwdresult,buffer,sizeof(buffer),&pwd)==0 && pwd) return pwd->pw_name;
|
|
@@ -180,7 +180,7 @@ FXbool FXFile::setCurrentDrive(const FXS
|
|
// Get home directory for a given user
|
|
FXString FXFile::getUserDirectory(const FXString& user){
|
|
#ifndef WIN32
|
|
-#ifdef FOX_THREAD_SAFE
|
|
+#if defined(FOX_THREAD_SAFE) && !defined(__OpenBSD__)
|
|
struct passwd pwdresult,*pwd;
|
|
char buffer[1024];
|
|
if(user.empty()){
|
|
@@ -1059,7 +1059,7 @@ FXbool FXFile::isSetSticky(const FXStrin
|
|
FXString FXFile::owner(FXuint uid){
|
|
FXchar result[64];
|
|
#ifndef WIN32
|
|
-#ifdef FOX_THREAD_SAFE
|
|
+#if defined(FOX_THREAD_SAFE) && !defined(__OpenBSD__)
|
|
struct passwd pwdresult,*pwd;
|
|
char buffer[1024];
|
|
if(getpwuid_r(uid,&pwdresult,buffer,sizeof(buffer),&pwd)==0 && pwd) return pwd->pw_name;
|