source: scripts/untested/blfs-patches/DirectFB-0.9.22-dfb_types_amd64_hack.patch @ fd5b1fe

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since fd5b1fe was fd5b1fe, checked in by Jim Gifford <clfs@…>, 18 years ago

r588@server (orig r586): ryan | 2005-08-05 22:47:43 -0700
Add pile of new patches for blfs packages



  • Property mode set to 100644
File size: 1.4 KB
  • include/dfb_types.h

    Submitted By: Ryan Oliver <ryan.oliver@pha.com.au>
    Date: 2005-07-31
    Initial Package Version: 0.9.22
    Origin: Based upon a debian hack
    Description: Hack to fix integer type redefinition errors on amd64.
    
     gcc -m64 -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../lib -I../../lib -I../../src -D_REENTRANT -Wall -O3 -ffast-math -pipe -O2 -pipe -march=athlon64 -D_GNU_SOURCE -Werror-implicit-function-declaration -MT ati128.lo -MD -MP -MF .deps/ati128.Tpo -c ati128.c  -fPIC -DPIC -o .libs/ati128.o
    In file included from /usr/include/asm/types.h:5,
                     from /usr/include/linux/fb.h:4,
                     from ati128.c:38:
    /usr/include/asm-x86_64/types.h:22: error: conflicting types for 'int64_t'
    /usr/include/sys/types.h:194: error: previous declaration of 'int64_t' was here
    /usr/include/asm-x86_64/types.h:23: error: conflicting types for 'u_int64_t'
    /usr/include/sys/types.h:200: error: previous declaration of 'u_int64_t' was here
    old new  
    22#define __DFB_TYPES_H__
    33
    44#include <sys/types.h>
    5 
    6 #define __u8  u_int8_t
    7 #define __u16 u_int16_t
    8 #define __u32 u_int32_t
    9 #define __u64 u_int64_t
    10 
    11 #define __s8  int8_t
    12 #define __s16 int16_t
    13 #define __s32 int32_t
    14 #define __s64 int64_t
     5#include <asm/types.h>
    156
    167#endif
Note: See TracBrowser for help on using the repository browser.