PATCH: DirectFB PAGE_SIZE handling
Hello,
DirectFB lib/direct/system.c uses PAGE_SIZE definition and fails to build:system.c: In function 'direct_pagesize':
system.c:64: error: 'PAGE_SIZE' undeclared (first use in this function) system.c:64: error: (Each undeclared identifier is reported only once system.c:64: error: for each function it appears in.)
There is no PAGE_SIZE in <asm/page.h> at least on ARM, the following patch forces DirectFB to detect PAGE_SIZE via sysconf( _SC_PAGESIZE ) libc call:
diff -urN buildroot.orig/package/directfb/directfb.mk buildroot.new/package/directfb/directfb.mk
package/directfb/directfb.mk 2007-06-26 00:17:13.000000000 +0300 renamed from package/directfb/directfb.mk 2007-05-18 10:15:13.000000000 +0300 +1 -0
@@ -26,6 +26,7 @@ LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_header_linux_wm97xx_h=no \ ac_cv_header_linux_sisfb_h=no \ + ac_cv_header_asm_page_h=no \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \
Also patch is attached because my mailer breaks formatting.
Best regards,
Ivan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DirectFB-patch_PAGE_SIZE.diff
Type: application/octet-stream
Size: 493 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070626/f1993d5e/attachment.obj
Bernhard Fischer
AppliedQuoted 3 lines · Ivan Kuten
Hello,
DirectFB
lib/direct/system.cusesPAGE_SIZEdefinition and fails to build:
applied, thanks!