]> git.gag.com Git - debian/sudo/blobdiff - compat/pw_dup.c
Imported Upstream version 1.8.7
[debian/sudo] / compat / pw_dup.c
index f43153e8b50ac1bff6b5e80fc7114b873d7529f6..6f9312ef7910b1c84d6dcdd2cddd6d4f0ed4b7dd 100644 (file)
@@ -1,5 +1,6 @@
 /*
- * Copyright (c) 2000, 2002, 2012 Todd C. Miller <Todd.Miller@courtesan.com>
+ * Copyright (c) 2000, 2002, 2012-2013
+ *     Todd C. Miller <Todd.Miller@courtesan.com>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -20,6 +21,8 @@
 
 #include <config.h>
 
+#ifndef HAVE_PW_DUP
+
 #include <sys/types.h>
 
 #include <stdio.h>
@@ -102,3 +105,4 @@ pw_dup(const struct passwd *pw)
 
        return newpw;
 }
+#endif /* HAVE_PW_DUP */