Merge branch 'jk/avoid-redef-system-functions-2.30'
* jk/avoid-redef-system-functions-2.30 git-compat-util: avoid redefining system function names
This commit is contained in:
commit
4948ed4731
@ -341,11 +341,12 @@ struct itimerval {
|
||||
#endif
|
||||
|
||||
#ifdef NO_SETITIMER
|
||||
static inline int setitimer(int which UNUSED,
|
||||
const struct itimerval *value UNUSED,
|
||||
struct itimerval *newvalue UNUSED) {
|
||||
static inline int git_setitimer(int which UNUSED,
|
||||
const struct itimerval *value UNUSED,
|
||||
struct itimerval *newvalue UNUSED) {
|
||||
return 0; /* pretend success */
|
||||
}
|
||||
#define setitimer(which,value,ovalue) git_setitimer(which,value,ovalue)
|
||||
#endif
|
||||
|
||||
#ifndef NO_LIBGEN_H
|
||||
@ -1471,14 +1472,16 @@ int open_nofollow(const char *path, int flags);
|
||||
#endif
|
||||
|
||||
#ifndef _POSIX_THREAD_SAFE_FUNCTIONS
|
||||
static inline void flockfile(FILE *fh UNUSED)
|
||||
static inline void git_flockfile(FILE *fh UNUSED)
|
||||
{
|
||||
; /* nothing */
|
||||
}
|
||||
static inline void funlockfile(FILE *fh UNUSED)
|
||||
static inline void git_funlockfile(FILE *fh UNUSED)
|
||||
{
|
||||
; /* nothing */
|
||||
}
|
||||
#define flockfile(fh) git_flockfile(fh)
|
||||
#define funlockfile(fh) git_funlockfile(fh)
|
||||
#define getc_unlocked(fh) getc(fh)
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user