diff --git a/corefoundation.go b/corefoundation.go
index <HASH>..<HASH> 100644
--- a/corefoundation.go
+++ b/corefoundation.go
@@ -1,4 +1,4 @@
-// +build darwin ios
+// +build darwin,ios
 
 package keychain
 
diff --git a/keychain.go b/keychain.go
index <HASH>..<HASH> 100644
--- a/keychain.go
+++ b/keychain.go
@@ -1,4 +1,4 @@
-// +build darwin ios
+// +build darwin,ios
 
 package keychain
 
@@ -414,9 +414,3 @@ func GetGenericPassword(service string, account string, label string, accessGrou
 	}
 	return nil, nil
 }
-
-// DeleteItemRef deletes a keychain item reference.
-func DeleteItemRef(ref C.CFTypeRef) error {
-	errCode := C.SecKeychainItemDelete(C.SecKeychainItemRef(ref))
-	return checkError(errCode)
-}
diff --git a/osx.go b/osx.go
index <HASH>..<HASH> 100644
--- a/osx.go
+++ b/osx.go
@@ -101,3 +101,9 @@ func (k *Item) SetAccess(a *Access) {
 		delete(k.attr, AccessKey)
 	}
 }
+
+// DeleteItemRef deletes a keychain item reference.
+func DeleteItemRef(ref C.CFTypeRef) error {
+	errCode := C.SecKeychainItemDelete(C.SecKeychainItemRef(ref))
+	return checkError(errCode)
+}
SecKeychainItemDelete is os x only