Ignore:
Timestamp:
2010-07-22T04:43:44+02:00 (6 years ago)
Author:
jow
Message:

[tools] mkimage: fix compilation on FreeBSD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/mkimage/patches/100-portability.patch

    r19095 r22344  
    11--- a/tools/kwbimage.c 
    22+++ b/tools/kwbimage.c 
    3 @@ -206,6 +206,28 @@ INVL_DATA: 
     3@@ -206,6 +206,30 @@ INVL_DATA: 
    44        exit (EXIT_FAILURE); 
    55 } 
    66  
    77+#ifndef __GLIBC__ 
     8+#ifndef __FreeBSD__ 
    89+static ssize_t 
    910+getline(char **line, size_t *len, FILE *fd) 
     
    2627+} 
    2728+#endif 
     29+#endif 
    2830+ 
    2931 /* 
    3032  * this function sets the kwbimage header by- 
    3133  *     1. Abstracting input command line arguments data 
     34--- a/include/image.h 
     35+++ b/include/image.h 
     36@@ -49,6 +49,10 @@ 
     37  
     38 #endif /* USE_HOSTCC */ 
     39  
     40+#ifndef ulong 
     41+#define ulong unsigned long 
     42+#endif 
     43+ 
     44 #include <command.h> 
     45  
     46 #if defined(CONFIG_FIT) 
Note: See TracChangeset for help on using the changeset viewer.