Since 22d52344e1745068e2bc7dd716bf9ec5dc7b8a06 in xmms2, you need to include stdlib.h and stdio.h yourself.
Also, the macros XPOINTER_TO_INT() and XINT_TO_POINTER() are now in a private header rather than the public one that gets installed to the system. That makes it a little hard to use said macros. To solve the issue, I'm just defining the macros as they are in the private header. Signed-off-by: Frank Terbeck <f...@bewatermyfriend.org> --- src/submission.c | 1 + src/xmms2-scrobbler.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/submission.c b/src/submission.c index 422db0a..326b003 100644 --- a/src/submission.c +++ b/src/submission.c @@ -22,6 +22,7 @@ */ #include <stdlib.h> +#include <stdio.h> #include "submission.h" Submission * diff --git a/src/xmms2-scrobbler.c b/src/xmms2-scrobbler.c index a19eca2..ec3f1e4 100644 --- a/src/xmms2-scrobbler.c +++ b/src/xmms2-scrobbler.c @@ -48,6 +48,14 @@ #define INVALID_MEDIA_ID -1 +#if defined(__x86_64__) +# define XPOINTER_TO_INT(p) ((int) (long) (p)) +# define XINT_TO_POINTER(i) ((void *) (long) (i)) +#else +# define XPOINTER_TO_INT(p) ((int) (p)) +# define XINT_TO_POINTER(i) ((void *) (i)) +#endif + typedef struct { char name[NAME_MAX + 1]; int hard_failure_count; -- 1.8.2.rc1 -- _______________________________________________ Xmms2-devel mailing list Xmms2-devel@lists.xmms2.org http://lists.xmms2.org/cgi-bin/mailman/listinfo/xmms2-devel