[PATCH remotefilelog-ext] cdatapack: include sys/types.h for off_t

Jun Wu quark at fb.com
Tue Nov 29 06:28:36 EST 2016


Pushed. Thanks!

Excerpts from Augie Fackler's message of 2016-11-28 17:27:05 -0500:
> # HG changeset patch
> # User Augie Fackler <augie at google.com>
> # Date 1480371885 18000
> #      Mon Nov 28 17:24:45 2016 -0500
> # Node ID 26bc28cb6f435212bf1a3a120e21175754a7af5e
> # Parent  214ac612b5f1555c52ed2c3c4f70551bce880346
> cdatapack: include sys/types.h for off_t
> 
> This isn't required on all systems, but I ran into one where it
> was. Sigh. I've struggled a bit to find proper documentation of this,
> and this is the best I could do:
> http://pubs.opengroup.org/onlinepubs/009696799/basedefs/sys/types.h.html 
> 
> diff --git a/cdatapack/cdatapack.h b/cdatapack/cdatapack.h
> --- a/cdatapack/cdatapack.h
> +++ b/cdatapack/cdatapack.h
> @@ -10,6 +10,7 @@
>  #include <stdint.h>
>  #include <stddef.h>
>  #include <stdbool.h>
> +#include <sys/types.h>
>  
>  #define NODE_SZ 20
>  


More information about the Mercurial-devel mailing list