1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-23 22:52:34 +01:00

fix portability bug for non-X11R6 systems

This commit is contained in:
kojima
1999-05-30 04:52:05 +00:00
parent c8cbc630c4
commit fbd9035f3e
2 changed files with 6 additions and 0 deletions

View File

@@ -103,3 +103,6 @@ libWINGs_a_SOURCES = \
INCLUDES = -I$(top_srcdir)/wrlib -I$(top_srcdir)/src \ INCLUDES = -I$(top_srcdir)/wrlib -I$(top_srcdir)/src \
-DRESOURCE_PATH=\"$(datadir)/WINGs\" @HEADER_SEARCH_PATH@ -DDEBUG -DRESOURCE_PATH=\"$(datadir)/WINGs\" @HEADER_SEARCH_PATH@ -DDEBUG
wcolorpanel.o: wcolorpanel.c
$(COMPILE) -c -DRGBTXT="@X_LIBRARY_PATH@/X11/rgb.txt" $<

View File

@@ -257,7 +257,10 @@ enum {
#undef EASTEREGG #undef EASTEREGG
#ifndef RGBTXT
#define RGBTXT "/usr/X11R6/lib/X11/rgb.txt" #define RGBTXT "/usr/X11R6/lib/X11/rgb.txt"
#endif
#define MAX_LENGTH 1024 #define MAX_LENGTH 1024
static int fetchFile(char* toPath, char *imageSrcFile, static int fetchFile(char* toPath, char *imageSrcFile,