Hi dev@,

in commit c6fcb78b3a9a73b691875048848430c18870a0fc[1], Colourmap was renamed to 
the 
american version "Colormap", which is already defined in openbsds X.h:

  st.c:183: error: redefinition of typedef 'Colormap'
  /usr/X11R6/include/X11/X.h:104: error: previous declaration of 'Colormap' was 
here

My patch below solves it for me, but i only tested on openbsd.

Any thoughts?

Nils


[1]: 
http://git.suckless.org/st/commit/?id=c6fcb78b3a9a73b691875048848430c18870a0fc



diff --git a/st.c b/st.c
index 8b65450..45b9a02 100644
--- a/st.c
+++ b/st.c
@@ -180,7 +180,7 @@ typedef unsigned short ushort;
 
 typedef XftDraw *Draw;
 typedef XftColor Color;
-typedef Colormap Colormap;
+typedef Colormap Colourmap;
 
 typedef struct {
        char c[UTF_SIZ]; /* character code */
@@ -241,7 +241,7 @@ typedef struct {
 /* Purely graphic info */
 typedef struct {
        Display *dpy;
-       Colormap cmap;
+       Colourmap cmap;
        Window win;
        Drawable buf;
        Atom xembed, wmdeletewin, netwmname, netwmpid;


Reply via email to