cnping

Minimal Graphical Ping Tool
git clone https://git.sinitax.com/cnlohr/cnping
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

commit 73d178064852e8ed8490b628f09a87e986f283d0
parent 44752707139c8a3ee27684a0a1c439cd18cf7737
Author: cnlohr <lohr85@gmail.com>
Date:   Fri, 27 Sep 2019 04:13:20 -0400

Fix some issues on the Linux side that were brought up from building on Windows

Diffstat:
MMakefile | 2+-
Mping.c | 3+++
Mrawdraw/CNFGXDriver.c | 1-
3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -27,7 +27,7 @@ cnping : cnping.o rawdraw/CNFGFunctions.o rawdraw/CNFGXDriver.o ping.o httping.o cnping_mac : cnping.c rawdraw/CNFGFunctions.c rawdraw/CNFGCocoaCGDriver.m ping.c httping.o $(CC) -o cnping $^ -x objective-c -framework Cocoa -framework QuartzCore -lm -lpthread -searchnet : rawdraw/os_generic.o ping.o searchnet.o +searchnet : ping.o searchnet.o $(CC) $(CFLAGS) -o $@ $^ -lpthread linuxinstall : cnping diff --git a/ping.c b/ping.c @@ -179,6 +179,9 @@ void ping(struct sockaddr_in *addr ) #include <netinet/ip.h> #include <netinet/ip_icmp.h> #endif + +#include "rawdraw/os_generic.h" + #if defined WIN32 || defined __APPLE__ struct icmphdr { diff --git a/rawdraw/CNFGXDriver.c b/rawdraw/CNFGXDriver.c @@ -378,7 +378,6 @@ void CNFGUpdateScreenWithBitmap( unsigned long * data, int w, int h ) static XImage *xi; static int depth; static int lw, lh; - static unsigned char * lbuffer; if( !xi ) {