summaryrefslogtreecommitdiff
path: root/t/t0070-fundamental.sh
diff options
context:
space:
mode:
authorLibravatar Holger Weiß <holger@zedat.fu-berlin.de>2010-03-29 12:22:19 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-03-31 14:21:39 -0700
commit21e403a7b956a95a36f218439f82b1c8af869257 (patch)
tree9dfe35c59f028f08dc63d5732232d002392e4ac6 /t/t0070-fundamental.sh
parentgitweb: git_get_project_config requires only $git_dir, not also $project (diff)
downloadtgif-21e403a7b956a95a36f218439f82b1c8af869257.tar.xz
Don't redefine htonl and ntohl on big-endian
Since commit 0fcabdeb52b79775173d009ccc179db104dfbb66, compat/bswap.h redefined htonl and ntohl to bswap32 not only if bswap32 has been defined earlier in compat/bswap.h (which is done only on selected platforms), but also if bswap32 has been defined anywhere else. This broke Git at least for NetBSD systems running on big-endian machines (where ntohl and htonl should, of course, be NOOPs), since NetBSD defines a bswap32 macro in the system headers. So, we now undefine any previously defined bswap32 in compat/bswap.h before defining our own. Signed-off-by: Holger Weiß <holger@zedat.fu-berlin.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0070-fundamental.sh')
0 files changed, 0 insertions, 0 deletions