crux-musl

Unnamed repository; edit this file 'description' to name the repository.
git clone https://codeberg.org/emmett1/crux-musl
Log | Files | Refs | README | LICENSE

musl-__compar_fn_t.patch (496B)


      1 Define _GNU_SOURCE for the declaration of loff_t in fcntl.h
      2 Add missing typedefs for __compar_fn_t and compare_fn_t for
      3 non __GLIBC__ case.
      4 
      5 --- a/include/misc.h
      6 +++ b/include/misc.h
      7 @@ -35,6 +35,11 @@
      8  
      9  #define INVAL_PTR	(void *)-1
     10  
     11 +#if !defined(__GLIBC__)
     12 +typedef int (*__compar_fn_t) (const void*, const void*);
     13 +typedef __compar_fn_t comparison_fn_t;
     14 +#endif
     15 +
     16  void check_memory_msg(void);
     17  void die(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
     18  void *getmem(int size);