Forráskód Böngészése

Fix OS X dmg build

Kevin Wojniak 9 éve
szülő
commit
f2820b50ca
2 módosított fájl, 4 hozzáadás és 4 törlés
  1. 1 1
      Makefile.osx
  2. 3 3
      src/main.c

+ 1 - 1
Makefile.osx

@@ -10,7 +10,7 @@
 PACKAGE = Civetweb
 BUILD_DIR = out
 
-CFLAGS += -DUSE_COCOA -mmacosx-version-min=10.4 -ObjC -arch i386 -arch x86_64
+CFLAGS += -DUSE_COCOA -DENABLE_CREATE_CONFIG_FILE -mmacosx-version-min=10.4 -ObjC -arch i386 -arch x86_64
 LDFLAGS += -framework Cocoa
 
 DMG_DIR = $(BUILD_DIR)/dmg

+ 3 - 3
src/main.c

@@ -2510,9 +2510,9 @@ main(int argc, char *argv[])
 }
 - (void)editConfig
 {
-	create_config_file(g_ctx, g_config_file);
+	create_config_file(g_ctx, g_config_file_name);
 	[[NSWorkspace sharedWorkspace]
-	           openFile:[NSString stringWithUTF8String:g_config_file]
+	           openFile:[NSString stringWithUTF8String:g_config_file_name]
 	    withApplication:@"TextEdit"];
 }
 - (void)shutDown
@@ -2581,7 +2581,7 @@ main(int argc, char *argv[])
 	[NSApp activateIgnoringOtherApps:YES];
 	[NSApp run];
 
-	stop_civetweb(g_ctx);
+	stop_civetweb();
 
 	return EXIT_SUCCESS;
 }