Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/mtree Our <sys/param.h> ends up calling header file...



details:   https://anonhg.NetBSD.org/src/rev/86be51f84c81
branches:  trunk
changeset: 790556:86be51f84c81
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 17 17:22:59 2013 +0000

description:
Our <sys/param.h> ends up calling header files that define intmax_t. This
should not be the case (but >sys/param.h> is not a standard header so all bets
are off). FreeBSD's does not, so explicitly include <stdint.h> to get it.

diffstat:

 usr.sbin/mtree/compare.c |  5 +++--
 usr.sbin/mtree/create.c  |  5 +++--
 usr.sbin/mtree/spec.c    |  5 +++--
 3 files changed, 9 insertions(+), 6 deletions(-)

diffs (78 lines):

diff -r b8b4244b2618 -r 86be51f84c81 usr.sbin/mtree/compare.c
--- a/usr.sbin/mtree/compare.c  Thu Oct 17 16:52:02 2013 +0000
+++ b/usr.sbin/mtree/compare.c  Thu Oct 17 17:22:59 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compare.c,v 1.56 2013/09/09 23:27:43 christos Exp $    */
+/*     $NetBSD: compare.c,v 1.57 2013/10/17 17:22:59 christos Exp $    */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)compare.c  8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: compare.c,v 1.56 2013/09/09 23:27:43 christos Exp $");
+__RCSID("$NetBSD: compare.c,v 1.57 2013/10/17 17:22:59 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -48,6 +48,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>
diff -r b8b4244b2618 -r 86be51f84c81 usr.sbin/mtree/create.c
--- a/usr.sbin/mtree/create.c   Thu Oct 17 16:52:02 2013 +0000
+++ b/usr.sbin/mtree/create.c   Thu Oct 17 17:22:59 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: create.c,v 1.71 2013/10/16 17:24:20 christos Exp $     */
+/*     $NetBSD: create.c,v 1.72 2013/10/17 17:22:59 christos Exp $     */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)create.c   8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: create.c,v 1.71 2013/10/16 17:24:20 christos Exp $");
+__RCSID("$NetBSD: create.c,v 1.72 2013/10/17 17:22:59 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -55,6 +55,7 @@
 #include <pwd.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>
diff -r b8b4244b2618 -r 86be51f84c81 usr.sbin/mtree/spec.c
--- a/usr.sbin/mtree/spec.c     Thu Oct 17 16:52:02 2013 +0000
+++ b/usr.sbin/mtree/spec.c     Thu Oct 17 17:22:59 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spec.c,v 1.87 2013/10/16 17:26:14 christos Exp $       */
+/*     $NetBSD: spec.c,v 1.88 2013/10/17 17:22:59 christos Exp $       */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -67,7 +67,7 @@
 #if 0
 static char sccsid[] = "@(#)spec.c     8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: spec.c,v 1.87 2013/10/16 17:26:14 christos Exp $");
+__RCSID("$NetBSD: spec.c,v 1.88 2013/10/17 17:22:59 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -81,6 +81,7 @@
 #include <pwd.h>
 #include <stdarg.h>
 #include <stdio.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>



Home | Main Index | Thread Index | Old Index