diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2014-11-16 04:16:42 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2014-11-16 04:16:42 +0000 |
commit | 3243c629699c25f7f4a576fe1c2f58e274eba8f7 (patch) | |
tree | 13313bb150a27b55b2509040ec05f6786e7d8ba5 /usr.bin/mg/cscope.c | |
parent | a85c45b1c774102095dfe0605bb6242bb7309462 (diff) |
Stop using <sys/param.h>; replace MAXPATHLEN with PATH_MAX, stop using MAX(),
and pull in <limits.h> for *_MAX constants.
inspired on a diff from Kamil Rytarowski (n54 (at) gmx.com)
ok bcallah@
Diffstat (limited to 'usr.bin/mg/cscope.c')
-rw-r--r-- | usr.bin/mg/cscope.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mg/cscope.c b/usr.bin/mg/cscope.c index a52a0a9e4f1..12ab06cad4f 100644 --- a/usr.bin/mg/cscope.c +++ b/usr.bin/mg/cscope.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cscope.c,v 1.7 2014/11/16 00:59:25 guenther Exp $ */ +/* $OpenBSD: cscope.c,v 1.8 2014/11/16 04:16:41 guenther Exp $ */ /* * This file is in the public domain. @@ -13,6 +13,7 @@ #include <ctype.h> #include <fcntl.h> #include <fnmatch.h> +#include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> |