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

portability.patch (606B)


      1 --- a/libfs/devices.h 2005-11-23 07:43:55.000000000 +1100
      2 +++ b/libfs/devices.h 2013-01-06 11:30:25.381538024 +1100
      3 @@ -40,6 +40,8 @@
      4  #define ERROR_INVALID_PARAMETER  87
      5  #define ERROR_DISK_FULL    112
      6  
      7 +#include <inttypes.h>
      8 +
      9  struct stat;
     10  
     11  int ujfs_get_dev_size(FILE *, int64_t * size);
     12 --- a/libfs/fssubs.c	2015-06-03 19:18:02.225624388 +0200
     13 +++ b/libfs/fssubs.c	2015-06-03 19:18:46.216543510 +0200
     14 @@ -30,8 +30,9 @@
     15  #undef HAVE_GETMNTINFO		/* we don't want both */
     16  #endif
     17  
     18 -#if HAVE_GETMNTINFO
     19  #include <paths.h>
     20 +
     21 +#if HAVE_GETMNTINFO
     22  #include <sys/param.h>
     23  #include <sys/mount.h>
     24  #endif