X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Ftwin%2Fpbt-scr.c;h=e10cab10e9c9b817d8ae06a5c6a9da27b6c8fac7;hp=79f6792e346d33d1ff6c786fffd11a400aa9cd0e;hb=ed8a3ad086e56fa40c72c531b3f563e35a7c0753;hpb=089d0a6eb769d531129a7cd1061493a1a24b4bef diff --git a/ui/twin/pbt-scr.c b/ui/twin/pbt-scr.c index 79f6792..e10cab1 100644 --- a/ui/twin/pbt-scr.c +++ b/ui/twin/pbt-scr.c @@ -15,8 +15,10 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#if defined(HAVE_CONFIG_H) #include "config.h" -#define _GNU_SOURCE +#endif + #include #include @@ -400,8 +402,8 @@ struct pbt_scr *pbt_scr_init(void *talloc_ctx, #if !defined(HAVE_LIBTWIN_TWIN_X11_H) assert(0); #else - scr->twin_ctx.x11 = twin_x11_create_ext(XOpenDisplay(0), width, - height, 0); + scr->twin_ctx.x11 = twin_x11_create_ext(XOpenDisplay(NULL), + width, height, 0); if (!scr->twin_ctx.x11) { pb_log("%s: twin_x11_create_ext failed.\n", __func__);