354840b
diff -up ./dump1090.c.share ./dump1090.c
354840b
--- ./dump1090.c.share	2021-07-27 13:24:25.338014426 -0400
354840b
+++ ./dump1090.c	2021-07-27 13:26:55.515461586 -0400
354840b
@@ -46,6 +46,7 @@
354840b
 #include "rtl-sdr.h"
354840b
 #include "anet.h"
354840b
 
354840b
+#define GMAP_HTML	"/usr/share/dump1090/gmap.html"
354840b
 #define MODES_DEFAULT_RATE         2000000
354840b
 #define MODES_DEFAULT_FREQ         1090000000
354840b
 #define MODES_DEFAULT_WIDTH        1000
354840b
@@ -2253,8 +2254,8 @@ int handleHTTPRequest(struct client *c)
354840b
         struct stat sbuf;
354840b
         int fd = -1;
354840b
 
354840b
-        if (stat("gmap.html",&sbuf) != -1 &&
354840b
-            (fd = open("gmap.html",O_RDONLY)) != -1)
354840b
+        if (stat(GMAP_HTML,&sbuf) != -1 &&
354840b
+            (fd = open(GMAP_HTML,O_RDONLY)) != -1)
354840b
         {
354840b
             content = malloc(sbuf.st_size);
354840b
             if (read(fd,content,sbuf.st_size) == -1) {