]> git.ipfire.org Git - thirdparty/git.git/blobdiff - compat/mingw.h
mingw32: add uname()
[thirdparty/git.git] / compat / mingw.h
index 5e499cfb71a00ea81013c1ed21e9a5e9dc9e2544..a6f7b9f1a79e6e13bec379482e5ab23edb057dd8 100644 (file)
@@ -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