commit 54b59fd17c20575ab6f752e0258848d79afa8ccc
parent aff1f05cfb5b551f5ed7b8e18c9162b1f647e9c4
Author: rsc <devnull@localhost>
Date: Fri, 21 Apr 2006 03:55:13 +0000
apple
Diffstat:
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/libsec/386/md5block.spp b/src/libsec/386/md5block.spp
@@ -116,8 +116,13 @@
.text
.p2align 2,0x90
+#ifdef __Darwin__
+ .globl __md5block
+ __md5block:
+#else
.globl _md5block
_md5block:
+#endif
/* Prelude */
pushl %ebp
diff --git a/src/libsec/386/mkfile b/src/libsec/386/mkfile
@@ -18,7 +18,7 @@ UPDATE=mkfile\
%.s: %.spp
if [ `uname` = OpenBSD ] || [ `uname` = Darwin ]
then
- gcc -xc -E $stem.spp >$stem.s
+ gcc -xc -D__`uname`__ -E $stem.spp >$stem.s
else
cpp $stem.spp >$stem.s
fi
diff --git a/src/libsec/386/sha1block.spp b/src/libsec/386/sha1block.spp
@@ -1,8 +1,13 @@
.text
.p2align 2,0x90
+#ifdef __Darwin__
+.globl __sha1block
+__sha1block:
+#else
.globl _sha1block
_sha1block:
+#endif
/* x = (wp[off-f] ^ wp[off-8] ^ wp[off-14] ^ wp[off-16]) <<< 1;
* wp[off] = x;