changeset 76:2db6c35f7652

iOS: Fix compiling for iOS. Some net/ includes are missing. Also fix unused variables reported by Xcode.
author Brian Smith <brian@dbsoft.org>
date Sun, 08 Aug 2021 23:43:44 -0500
parents d5b0c9057be2
children 869801e5ff04
files cc.c statsunx.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/cc.c	Thu Mar 25 17:35:22 2021 -0500
+++ b/cc.c	Sun Aug 08 23:43:44 2021 -0500
@@ -564,9 +564,7 @@
 int DWSIGNAL color_click(HWND hwnd, int x, int y, int buttonmask, void *data)
 {
 	int color = DW_POINTER_TO_INT(data);
-	unsigned long thiswidth, thisheight, newcol;
-
-	newcol = dw_color_choose(current_colors[color]);
+	unsigned long newcol = dw_color_choose(current_colors[color]);
 
 	if(newcol != current_colors[color])
 	{
--- a/statsunx.c	Thu Mar 25 17:35:22 2021 -0500
+++ b/statsunx.c	Sun Aug 08 23:43:44 2021 -0500
@@ -12,10 +12,12 @@
 #include <sys/socket.h>
 #include <sys/ioctl.h>
 #include <sys/select.h>
+#if !defined(__IOS__)
 #include <net/route.h>
 #include <net/if.h>
 #include <net/if_arp.h>
 #include <netinet/if_ether.h>
+#endif
 #include <time.h>
 #include <fcntl.h>
 #if defined(__MAC__)