diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-01-03 10:28:21 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-03 10:28:21 -0800 |
commit | 324dfac8c990c38b1f8eb5a736be4e9e6b490e48 (patch) | |
tree | b2c8bcbfd14e3d193a921625af120fea710d7164 /git-compat-util.h | |
parent | 0266f4688ce2eab25629a2aa4ccd5032944311c8 (diff) | |
parent | b2d05e0653f29a75b57260c4d963d560ad65691b (diff) | |
download | git-324dfac8c990c38b1f8eb5a736be4e9e6b490e48.tar.gz git-324dfac8c990c38b1f8eb5a736be4e9e6b490e48.tar.xz |
Merge branch 'dm/port'
Add a few more knobs for new platform ports can tweak.
* dm/port:
git-compat-util.h: do not #include <sys/param.h> by default
Generalize the inclusion of strings.h
Detect when the passwd struct is missing pw_gecos
Support builds when sys/param.h is missing
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index 2e79b8a2f..a88147b2d 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -99,12 +99,14 @@ #include <stdlib.h> #include <stdarg.h> #include <string.h> -#ifdef __TANDEM /* or HAVE_STRINGS_H or !NO_STRINGS_H? */ +#ifdef HAVE_STRINGS_H #include <strings.h> /* for strcasecmp() */ #endif #include <errno.h> #include <limits.h> +#ifdef NEEDS_SYS_PARAM_H #include <sys/param.h> +#endif #include <sys/types.h> #include <dirent.h> #include <sys/time.h> |