Changeset 894
- Timestamp:
- 05/11/08 22:18:36 (4 months ago)
- Files:
-
- trunk/src/Makefile.osx (modified) (1 diff)
- trunk/src/z-file.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/Makefile.osx
r830 r894 32 32 -DPRIVATE_USER_PATH=\"~/Library/Preferences\" -DUSE_PRIVATE_PATHS \ 33 33 -arch ppc -arch i386 -mmacosx-version-min=10.0 34 LIBS = -framework CoreFoundation -framework QuickTime -framework Carbon 34 LIBS = -framework CoreFoundation -framework QuickTime -framework Carbon -framework SystemConfiguration 35 35 36 36 # trunk/src/z-file.c
r759 r894 30 30 #endif 31 31 32 #ifdef MACH_O_CARBON 33 # include <SystemConfiguration/SCDynamicStoreCopySpecific.h> 34 #endif 35 32 36 #ifdef HAVE_FCNTL_H 33 37 # include <fcntl.h> … … 149 153 150 154 /* Look up a user (or "current" user) */ 155 #ifndef MACH_O_CARBON 151 156 if (username) pw = getpwnam(username); 152 157 else pw = getpwuid(getuid()); 153 158 159 #else /* MACH_O_CARBON */ 160 161 /* On Macs look up the console user to avoid problems with invalid root detection */ 162 uid_t uid; 163 SCDynamicStoreCopyConsoleUser(NULL, &uid, NULL); 164 pw = getpwuid(uid); 165 #endif /* !MACH_O_CARBON */ 166 154 167 if (!pw) return; 155 168
