The pid variable that is passed to XChangeProperty() is not a long. The libX11 code deferences the variable as a long and on a 64-bit sparc this must be aligned on a 8-byte boundary. Obtained from: upstream
11 lines
409 B
C
11 lines
409 B
C
--- xclock.c.orig 2010-08-07 16:05:41.000000000 +0200
|
|
+++ xclock.c 2010-08-07 16:05:59.000000000 +0200
|
|
@@ -215,7 +215,7 @@ main(int argc, char *argv[])
|
|
|
|
#ifdef HAVE_GETPID
|
|
{
|
|
- pid_t pid = getpid();
|
|
+ unsigned long pid = (unsigned long)getpid();
|
|
XChangeProperty(XtDisplay(toplevel), XtWindow(toplevel),
|
|
XInternAtom(XtDisplay(toplevel), "_NET_WM_PID", False),
|
|
XA_CARDINAL, 32, PropModeReplace,
|