diff options
author | rsc <devnull@localhost> | 2006-04-21 03:55:13 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-21 03:55:13 +0000 |
commit | 54b59fd17c20575ab6f752e0258848d79afa8ccc (patch) | |
tree | de15d4c06fbed9c47b2bbf225d6d345ca182c7d0 /src/libsec | |
parent | aff1f05cfb5b551f5ed7b8e18c9162b1f647e9c4 (diff) | |
download | plan9port-54b59fd17c20575ab6f752e0258848d79afa8ccc.tar.gz plan9port-54b59fd17c20575ab6f752e0258848d79afa8ccc.tar.bz2 plan9port-54b59fd17c20575ab6f752e0258848d79afa8ccc.zip |
apple
Diffstat (limited to 'src/libsec')
-rw-r--r-- | src/libsec/386/md5block.spp | 5 | ||||
-rw-r--r-- | src/libsec/386/mkfile | 2 | ||||
-rw-r--r-- | src/libsec/386/sha1block.spp | 5 |
3 files changed, 11 insertions, 1 deletions
diff --git a/src/libsec/386/md5block.spp b/src/libsec/386/md5block.spp index b218683b..feebf615 100644 --- 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 index 54f0ca71..6f970600 100644 --- 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 index 2a7eabdc..d568e4fe 100644 --- 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; |