Module Name: src
Committed By: apb
Date: Thu Oct 2 21:27:41 UTC 2014
Modified Files:
src/sbin/gpt: gpt_uuid.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sbin/gpt/gpt_uuid.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/gpt/gpt_uuid.c
diff -u src/sbin/gpt/gpt_uuid.c:1.4 src/sbin/gpt/gpt_uuid.c:1.5
--- src/sbin/gpt/gpt_uuid.c:1.4 Wed Oct 1 12:55:41 2014
+++ src/sbin/gpt/gpt_uuid.c Thu Oct 2 21:27:41 2014
@@ -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 @@ __RCSID("$NetBSD: gpt_uuid.c,v 1.4 2014/
#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