mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
5d0e746f08
gtk+/qt/motif/etc. PR: 14467 Submitted by: Chris D. Faulhaber <jedgar@fxp.org>
27 lines
587 B
Plaintext
27 lines
587 B
Plaintext
--- Xe.C.orig Fri Oct 22 00:20:19 1999
|
|
+++ Xe.C Fri Oct 22 18:45:53 1999
|
|
@@ -41,9 +41,11 @@
|
|
// Home directory lookup function.
|
|
//
|
|
|
|
+#ifndef __FreeBSD__
|
|
extern "C" {
|
|
extern char* cuserid(char*);
|
|
}
|
|
+#endif
|
|
|
|
void
|
|
getHomeDir(char* pathname)
|
|
@@ -57,8 +59,10 @@
|
|
|
|
// $$$ cuserid _should_ be in unistd.h, but egcs
|
|
// complains that it isn't declared
|
|
- username = (char*)cuserid(NULL);
|
|
+#ifndef __FreeBSD__
|
|
+ username = (char*)cuserid(NULL)
|
|
if (username == 0)
|
|
+#endif
|
|
username = getlogin();
|
|
|
|
if (username)
|