X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git-compat-util.h;h=d6d269f138b06791ba6e8712b06036f00a73c7e3;hb=39f04dbaacbb21864547c8cf087697469666d21e;hp=d0a1e480b6445a6f5ba3680672c255ab44ca43f0;hpb=cbcf0a6981687b31635d806f45e77188c54b7cfc;p=git.git diff --git a/git-compat-util.h b/git-compat-util.h index d0a1e480b..d6d269f13 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -105,7 +105,11 @@ #include #include #include +#ifndef NO_SYS_POLL_H #include +#else +#include +#endif #ifndef __MINGW32__ #include #include @@ -119,7 +123,11 @@ #include #include #include +#ifndef NO_INTTYPES_H #include +#else +#include +#endif #if defined(__CYGWIN__) #undef _XOPEN_SOURCE #include @@ -413,6 +421,7 @@ extern ssize_t xwrite(int fd, const void *buf, size_t len); extern int xdup(int fd); extern FILE *xfdopen(int fd, const char *mode); extern int xmkstemp(char *template); +extern int xmkstemp_mode(char *template, int mode); extern int odb_mkstemp(char *template, size_t limit, const char *pattern); extern int odb_pack_keep(char *name, size_t namesz, unsigned char *sha1);