aboutsummaryrefslogtreecommitdiff
path: root/compat/mingw.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2015-03-08 17:12:45 +0700
committerJunio C Hamano <gitster@pobox.com>2015-03-12 13:45:18 -0700
commit7b6aff0655c965959a59cc7fa3ed51c2a1fbcd44 (patch)
tree59173940684a1d6cd36d33be590ceac19d8cd927 /compat/mingw.h
parenta3ddcefd97b0e033eca045f07e0a262e1e7bb483 (diff)
downloadgit-7b6aff0655c965959a59cc7fa3ed51c2a1fbcd44.tar.gz
git-7b6aff0655c965959a59cc7fa3ed51c2a1fbcd44.tar.xz
mingw32: add uname()
Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/mingw.h')
-rw-r--r--compat/mingw.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index 5e499cfb7..a6f7b9f1a 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -76,6 +76,14 @@ struct itimerval {
};
#define ITIMER_REAL 0
+struct utsname {
+ char sysname[16];
+ char nodename[1];
+ char release[16];
+ char version[16];
+ char machine[1];
+};
+
/*
* sanitize preprocessor namespace polluted by Windows headers defining
* macros which collide with git local versions
@@ -171,6 +179,7 @@ struct passwd *getpwuid(uid_t uid);
int setitimer(int type, struct itimerval *in, struct itimerval *out);
int sigaction(int sig, struct sigaction *in, struct sigaction *out);
int link(const char *oldpath, const char *newpath);
+int uname(struct utsname *buf);
/*
* replacements of existing functions