From a99d496fd449896fc40bf7bdcd39f76337bc82be Mon Sep 17 00:00:00 2001 From: Alexei Svitkine Date: Sun, 9 Aug 2015 18:50:06 -0400 Subject: [PATCH] Fix Xcode project following move of files and fix a warning. --- BasiliskII/src/slirp/misc.c | 3 +- .../SheepShaver.xcodeproj/project.pbxproj | 46 +++++++++++-------- 2 files changed, 29 insertions(+), 20 deletions(-) diff --git a/BasiliskII/src/slirp/misc.c b/BasiliskII/src/slirp/misc.c index 2f3f00e2..50e872fe 100644 --- a/BasiliskII/src/slirp/misc.c +++ b/BasiliskII/src/slirp/misc.c @@ -73,9 +73,8 @@ int inet_aton(const char *cp, struct in_addr *ia) void getouraddr() { char buff[256]; - struct hostent *he = NULL; - if (gethostname(buff,256) == 0) + if (gethostname(buff, sizeof(buf)) == 0) { struct addrinfo hints = { 0 }; hints.ai_flags = AI_NUMERICHOST; diff --git a/SheepShaver/src/MacOSX/SheepShaver.xcodeproj/project.pbxproj b/SheepShaver/src/MacOSX/SheepShaver.xcodeproj/project.pbxproj index 2808f0d6..b27d0f7d 100644 --- a/SheepShaver/src/MacOSX/SheepShaver.xcodeproj/project.pbxproj +++ b/SheepShaver/src/MacOSX/SheepShaver.xcodeproj/project.pbxproj @@ -95,14 +95,11 @@ 0856D10614A99EF1000B1711 /* prefs_unix.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0856CF5A14A99EF0000B1711 /* prefs_unix.cpp */; }; 0856D10714A99EF1000B1711 /* rpc_unix.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0856CF5C14A99EF0000B1711 /* rpc_unix.cpp */; }; 0856D10814A99EF1000B1711 /* serial_unix.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0856CF5E14A99EF0000B1711 /* serial_unix.cpp */; }; - 0856D10B14A99EF1000B1711 /* sigsegv.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0856CF6214A99EF0000B1711 /* sigsegv.cpp */; }; 0856D10C14A99EF1000B1711 /* sshpty.c in Sources */ = {isa = PBXBuildFile; fileRef = 0856CF6414A99EF0000B1711 /* sshpty.c */; }; 0856D10D14A99EF1000B1711 /* strlcpy.c in Sources */ = {isa = PBXBuildFile; fileRef = 0856CF6614A99EF0000B1711 /* strlcpy.c */; }; 0856D10E14A99EF1000B1711 /* sys_unix.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0856CF6814A99EF0000B1711 /* sys_unix.cpp */; }; 0856D10F14A99EF1000B1711 /* timer_unix.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0856CF6A14A99EF0000B1711 /* timer_unix.cpp */; }; 0856D11114A99EF1000B1711 /* user_strings_unix.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0856CF6C14A99EF0000B1711 /* user_strings_unix.cpp */; }; - 0856D11314A99EF1000B1711 /* video_blit.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0856CF7014A99EF0000B1711 /* video_blit.cpp */; }; - 0856D11514A99EF1000B1711 /* vm_alloc.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0856CF7414A99EF0000B1711 /* vm_alloc.cpp */; }; 0856D11614A99EF1000B1711 /* xpram_unix.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0856CF7614A99EF0000B1711 /* xpram_unix.cpp */; }; 0856D11714A99EF1000B1711 /* user_strings.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0856CF7714A99EF0000B1711 /* user_strings.cpp */; }; 0856D11814A99EF1000B1711 /* video.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0856CF7814A99EF0000B1711 /* video.cpp */; }; @@ -125,6 +122,9 @@ 0879BD8815A891EC00DC277D /* config-macosx-x86_32.h in Headers */ = {isa = PBXBuildFile; fileRef = 0879BD8615A891EC00DC277D /* config-macosx-x86_32.h */; }; 0879BD8915A891EC00DC277D /* config-macosx-ppc_32.h in Headers */ = {isa = PBXBuildFile; fileRef = 0879BD8515A891EC00DC277D /* config-macosx-ppc_32.h */; }; 0879BD8A15A891EC00DC277D /* config-macosx-x86_32.h in Headers */ = {isa = PBXBuildFile; fileRef = 0879BD8615A891EC00DC277D /* config-macosx-x86_32.h */; }; + 087B91BE1B780FFC00825F7F /* sigsegv.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 087B91B71B780FFC00825F7F /* sigsegv.cpp */; }; + 087B91BF1B780FFC00825F7F /* video_blit.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 087B91B91B780FFC00825F7F /* video_blit.cpp */; }; + 087B91C01B780FFC00825F7F /* vm_alloc.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 087B91BC1B780FFC00825F7F /* vm_alloc.cpp */; }; 08C99DA11593E79F00898E41 /* clip_macosx.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0856CE2C14A99EF0000B1711 /* clip_macosx.cpp */; }; 08CD42DC14B7B85B009CA2A2 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08CD42DB14B7B85B009CA2A2 /* Cocoa.framework */; }; 08CD42E814B7B8AA009CA2A2 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08CD42E714B7B8AA009CA2A2 /* Carbon.framework */; }; @@ -402,8 +402,6 @@ 0856CF5D14A99EF0000B1711 /* semaphore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = semaphore.h; sourceTree = ""; }; 0856CF5E14A99EF0000B1711 /* serial_unix.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = serial_unix.cpp; sourceTree = ""; }; 0856CF6114A99EF0000B1711 /* sigregs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sigregs.h; sourceTree = ""; }; - 0856CF6214A99EF0000B1711 /* sigsegv.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = sigsegv.cpp; sourceTree = ""; }; - 0856CF6314A99EF0000B1711 /* sigsegv.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sigsegv.h; sourceTree = ""; }; 0856CF6414A99EF0000B1711 /* sshpty.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sshpty.c; sourceTree = ""; }; 0856CF6514A99EF0000B1711 /* sshpty.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sshpty.h; sourceTree = ""; }; 0856CF6614A99EF0000B1711 /* strlcpy.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = strlcpy.c; sourceTree = ""; }; @@ -413,10 +411,6 @@ 0856CF6A14A99EF0000B1711 /* timer_unix.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = timer_unix.cpp; sourceTree = ""; }; 0856CF6C14A99EF0000B1711 /* user_strings_unix.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = user_strings_unix.cpp; sourceTree = ""; }; 0856CF6D14A99EF0000B1711 /* user_strings_unix.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = user_strings_unix.h; sourceTree = ""; }; - 0856CF7014A99EF0000B1711 /* video_blit.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = video_blit.cpp; sourceTree = ""; }; - 0856CF7114A99EF0000B1711 /* video_blit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = video_blit.h; sourceTree = ""; }; - 0856CF7414A99EF0000B1711 /* vm_alloc.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = vm_alloc.cpp; sourceTree = ""; }; - 0856CF7514A99EF0000B1711 /* vm_alloc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = vm_alloc.h; sourceTree = ""; }; 0856CF7614A99EF0000B1711 /* xpram_unix.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = xpram_unix.cpp; sourceTree = ""; }; 0856CF7714A99EF0000B1711 /* user_strings.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = user_strings.cpp; path = ../user_strings.cpp; sourceTree = SOURCE_ROOT; }; 0856CF7814A99EF0000B1711 /* video.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = video.cpp; path = ../video.cpp; sourceTree = SOURCE_ROOT; }; @@ -444,6 +438,13 @@ 0879BD8515A891EC00DC277D /* config-macosx-ppc_32.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "config-macosx-ppc_32.h"; sourceTree = ""; }; 0879BD8615A891EC00DC277D /* config-macosx-x86_32.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "config-macosx-x86_32.h"; sourceTree = ""; }; 0879BDAF15A8B1AA00DC277D /* Info.plist.in */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = Info.plist.in; sourceTree = ""; }; + 087B91B71B780FFC00825F7F /* sigsegv.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = sigsegv.cpp; path = ../CrossPlatform/sigsegv.cpp; sourceTree = SOURCE_ROOT; }; + 087B91B81B780FFC00825F7F /* sigsegv.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = sigsegv.h; path = ../CrossPlatform/sigsegv.h; sourceTree = SOURCE_ROOT; }; + 087B91B91B780FFC00825F7F /* video_blit.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = video_blit.cpp; path = ../CrossPlatform/video_blit.cpp; sourceTree = SOURCE_ROOT; }; + 087B91BA1B780FFC00825F7F /* video_blit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = video_blit.h; path = ../CrossPlatform/video_blit.h; sourceTree = SOURCE_ROOT; }; + 087B91BB1B780FFC00825F7F /* video_vosf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = video_vosf.h; path = ../CrossPlatform/video_vosf.h; sourceTree = SOURCE_ROOT; }; + 087B91BC1B780FFC00825F7F /* vm_alloc.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = vm_alloc.cpp; path = ../CrossPlatform/vm_alloc.cpp; sourceTree = SOURCE_ROOT; }; + 087B91BD1B780FFC00825F7F /* vm_alloc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = vm_alloc.h; path = ../CrossPlatform/vm_alloc.h; sourceTree = SOURCE_ROOT; }; 0885A5211593E3B6005C4F7B /* libclip.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libclip.a; sourceTree = BUILT_PRODUCTS_DIR; }; 0885A5341593E47F005C4F7B /* libclip64.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libclip64.a; sourceTree = BUILT_PRODUCTS_DIR; }; 08CD42DB14B7B85B009CA2A2 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; @@ -560,6 +561,7 @@ 0856CCC814A99E30000B1711 /* Sources */ = { isa = PBXGroup; children = ( + 087B91B11B780EC900825F7F /* CrossPlatform */, 0856CD4B14A99EEF000B1711 /* adb.cpp */, 0856CD4C14A99EEF000B1711 /* audio.cpp */, 0856CD7814A99EEF000B1711 /* cdrom.cpp */, @@ -917,8 +919,6 @@ 0856CF5D14A99EF0000B1711 /* semaphore.h */, 0856CF5E14A99EF0000B1711 /* serial_unix.cpp */, 0856CF6114A99EF0000B1711 /* sigregs.h */, - 0856CF6214A99EF0000B1711 /* sigsegv.cpp */, - 0856CF6314A99EF0000B1711 /* sigsegv.h */, 0856CF6414A99EF0000B1711 /* sshpty.c */, 0856CF6514A99EF0000B1711 /* sshpty.h */, 0856CF6614A99EF0000B1711 /* strlcpy.c */, @@ -930,10 +930,6 @@ 083E372116EFE87200CCCA59 /* tinyxml2.h */, 0856CF6C14A99EF0000B1711 /* user_strings_unix.cpp */, 0856CF6D14A99EF0000B1711 /* user_strings_unix.h */, - 0856CF7014A99EF0000B1711 /* video_blit.cpp */, - 0856CF7114A99EF0000B1711 /* video_blit.h */, - 0856CF7414A99EF0000B1711 /* vm_alloc.cpp */, - 0856CF7514A99EF0000B1711 /* vm_alloc.h */, 0856CF7614A99EF0000B1711 /* xpram_unix.cpp */, ); name = Unix; @@ -963,6 +959,20 @@ path = config; sourceTree = ""; }; + 087B91B11B780EC900825F7F /* CrossPlatform */ = { + isa = PBXGroup; + children = ( + 087B91B71B780FFC00825F7F /* sigsegv.cpp */, + 087B91B81B780FFC00825F7F /* sigsegv.h */, + 087B91B91B780FFC00825F7F /* video_blit.cpp */, + 087B91BA1B780FFC00825F7F /* video_blit.h */, + 087B91BB1B780FFC00825F7F /* video_vosf.h */, + 087B91BC1B780FFC00825F7F /* vm_alloc.cpp */, + 087B91BD1B780FFC00825F7F /* vm_alloc.h */, + ); + name = CrossPlatform; + sourceTree = ""; + }; 08CD42DF14B7B865009CA2A2 /* Frameworks */ = { isa = PBXGroup; children = ( @@ -1440,14 +1450,11 @@ 0856D10614A99EF1000B1711 /* prefs_unix.cpp in Sources */, 0856D10714A99EF1000B1711 /* rpc_unix.cpp in Sources */, 0856D10814A99EF1000B1711 /* serial_unix.cpp in Sources */, - 0856D10B14A99EF1000B1711 /* sigsegv.cpp in Sources */, 0856D10C14A99EF1000B1711 /* sshpty.c in Sources */, 0856D10D14A99EF1000B1711 /* strlcpy.c in Sources */, 0856D10E14A99EF1000B1711 /* sys_unix.cpp in Sources */, 0856D10F14A99EF1000B1711 /* timer_unix.cpp in Sources */, 0856D11114A99EF1000B1711 /* user_strings_unix.cpp in Sources */, - 0856D11314A99EF1000B1711 /* video_blit.cpp in Sources */, - 0856D11514A99EF1000B1711 /* vm_alloc.cpp in Sources */, 0856D11614A99EF1000B1711 /* xpram_unix.cpp in Sources */, 0856D11714A99EF1000B1711 /* user_strings.cpp in Sources */, 0856D11814A99EF1000B1711 /* video.cpp in Sources */, @@ -1458,6 +1465,9 @@ 083E370C16EFE85000CCCA59 /* disk_sparsebundle.cpp in Sources */, 083E372216EFE87200CCCA59 /* tinyxml2.cpp in Sources */, A7B1921418C35D4700791D8D /* DiskType.m in Sources */, + 087B91BE1B780FFC00825F7F /* sigsegv.cpp in Sources */, + 087B91BF1B780FFC00825F7F /* video_blit.cpp in Sources */, + 087B91C01B780FFC00825F7F /* vm_alloc.cpp in Sources */, ); runOnlyForDeploymentPostprocessing = 0; };