Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/gpt include <sys/endian.h> for both the non-tools build,
details: https://anonhg.NetBSD.org/src/rev/e233cb420de0
branches: trunk
changeset: 332666:e233cb420de0
user: apb <apb%NetBSD.org@localhost>
date: Thu Oct 02 21:27:41 2014 +0000
description:
include <sys/endian.h> for both the non-tools build,
and the tools build on a host where the file exists.
Fixes a build problem on FreeBSD, reported by Herbert J. Skuhra, where
tools/compat's configure detected that be32dec() and friends were
available in the host's <sys/endian.h>, so tools/compat did not provide
its own versions.
diffstat:
sbin/gpt/gpt_uuid.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 96da65126580 -r e233cb420de0 sbin/gpt/gpt_uuid.c
--- a/sbin/gpt/gpt_uuid.c Thu Oct 02 21:01:38 2014 +0000
+++ b/sbin/gpt/gpt_uuid.c Thu Oct 02 21:27:41 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gpt_uuid.c,v 1.4 2014/10/01 12:55:41 apb Exp $ */
+/* $NetBSD: gpt_uuid.c,v 1.5 2014/10/02 21:27:41 apb Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifdef __RCSID
-__RCSID("$NetBSD: gpt_uuid.c,v 1.4 2014/10/01 12:55:41 apb Exp $");
+__RCSID("$NetBSD: gpt_uuid.c,v 1.5 2014/10/02 21:27:41 apb Exp $");
#endif
#include <stdio.h>
@@ -40,7 +40,7 @@
#include "map.h"
#include "gpt.h"
-#ifndef HAVE_NBTOOL_CONFIG_H
+#if defined(HAVE_SYS_ENDIAN_H) || ! defined(HAVE_NBTOOL_CONFIG_H)
#include <sys/endian.h>
#endif
Home |
Main Index |
Thread Index |
Old Index