+# sigtramp.c can only compile with __DARWIN_UNIX03=0 (for ppc64) because
+# the structure field names are renamed with __ prefix when __DARWIN_UNIX03=1.
+# If sigtramp.c ever needs to build variant, this will have to be fix properly
+CFLAGS-sigtramp.c = -U__DARWIN_UNIX03 -D__DARWIN_UNIX03=0
+
+# set the LIBC_ALIAS_* macros so we can decorate the symbol independent
+# of other macro settings
+CFLAGS-accept.c += -DLIBC_ALIAS_ACCEPT
+#CFLAGS-aio_suspend.c += -DLIBC_ALIAS_AIO_SUSPEND
+CFLAGS-bind.c += -DLIBC_ALIAS_BIND
+CFLAGS-chmod.c += -DLIBC_ALIAS_CHMOD
+#CFLAGS-close.c += -DLIBC_ALIAS_CLOSE
+CFLAGS-connect.c += -DLIBC_ALIAS_CONNECT
+CFLAGS-fchmod.c += -DLIBC_ALIAS_FCHMOD
+#CFLAGS-fsync.c += -DLIBC_ALIAS_FSYNC
+CFLAGS-getattrlist.c += -DLIBC_ALIAS_GETATTRLIST
+CFLAGS-getpeername.c += -DLIBC_ALIAS_GETPEERNAME
+CFLAGS-getsockname.c += -DLIBC_ALIAS_GETSOCKNAME
+CFLAGS-lchmod.c += -DLIBC_ALIAS_LCHMOD
+CFLAGS-lchown.c += -DLIBC_ALIAS_LCHOWN
+CFLAGS-listen.c += -DLIBC_ALIAS_LISTEN
+CFLAGS-msgctl.c += -DLIBC_ALIAS_MSGCTL
+#CFLAGS-msgrcv.c += -DLIBC_ALIAS_MSGRCV
+#CFLAGS-msgsnd.c += -DLIBC_ALIAS_MSGSND
+#CFLAGS-poll.c += -DLIBC_ALIAS_POLL
+#CFLAGS-pread.c += -DLIBC_ALIAS_PREAD
+#CFLAGS-pwrite.c += -DLIBC_ALIAS_PWRITE
+#CFLAGS-read.c += -DLIBC_ALIAS_READ
+#CFLAGS-readv.c += -DLIBC_ALIAS_READV
+CFLAGS-recvfrom.c += -DLIBC_ALIAS_RECVFROM
+CFLAGS-recvmsg.c += -DLIBC_ALIAS_RECVMSG
+#CFLAGS-sem_wait.c += -DLIBC_ALIAS_SEM_WAIT
+CFLAGS-semctl.c += -DLIBC_ALIAS_SEMCTL
+CFLAGS-sendmsg.c += -DLIBC_ALIAS_SENDMSG
+CFLAGS-sendto.c += -DLIBC_ALIAS_SENDTO
+CFLAGS-setattrlist.c += -DLIBC_ALIAS_SETATTRLIST
+CFLAGS-shmctl.c += -DLIBC_ALIAS_SHMCTL
+CFLAGS-socketpair.c += -DLIBC_ALIAS_SOCKETPAIR
+CFLAGS-stack_protector-obsd.c += -fno-stack-protector
+#CFLAGS-waitid.c += -DLIBC_ALIAS_WAITID
+#CFLAGS-write.c += -DLIBC_ALIAS_WRITE
+#CFLAGS-writev.c += -DLIBC_ALIAS_WRITEV