> x11/xtacy only two additional patches are needed to compile with -fno-common; patch-trippy_c and patch-trippy_h.
-- yozo.
$OpenBSD$ the definitions of "global" vars moved to trippy.c Index: trippy.c --- trippy.c.orig +++ trippy.c @@ -65,6 +65,25 @@ #define VERSION "1.14" +/* ** global vars definition block starts ** */ +Display *display; +Screen *scr; +int screen; +int nwindows, nvisible; +int *visible; +Window *window; +Colormap colmap; /* One map to bind them... */ +unsigned int *CX, *CY, *M, *HC; +Colormap colmap; + +int numcolors; +int share_colors; +GC *color_gcs; +long** colors; /* [NCOLORS][3]; */ +double SinTbl[32]; +char *progname; +/* ** global vars definition block ends ** */ + struct foo options; int *jj; int startup=0;
$OpenBSD$ the definitions of "global" vars moved to trippy.c Index: trippy.h --- trippy.h.orig +++ trippy.h @@ -189,24 +189,24 @@ void exit_xload(); #define max(x,y) ((x>y)?x:y) #define min(x,y) ((x<y)?x:y) -Display *display; -Screen *scr; +extern Display *display; +extern Screen *scr; -int screen; -int nwindows, nvisible; -int *visible; -Window *window; -Colormap colmap; /* One map to bind them... */ -unsigned int *CX, *CY, *M, *HC; +extern int screen; +extern int nwindows, nvisible; +extern int *visible; +extern Window *window; +extern Colormap colmap; /* One map to bind them... */ +extern unsigned int *CX, *CY, *M, *HC; -int numcolors; -int share_colors; -GC *color_gcs; -long** colors; /* [NCOLORS][3]; */ -double SinTbl[32]; +extern int numcolors; +extern int share_colors; +extern GC *color_gcs; +extern long** colors; /* [NCOLORS][3]; */ +extern double SinTbl[32]; extern Cursor mycursor ; -char *progname; +extern char *progname; #if defined (__cplusplus) || defined (c_plusplus) }