Imported Upstream version 1.8.7
[debian/sudo] / compat / memrchr.c
index 0b1e3a59586df9703c0af91f84777253fa477742..34d82712c2f5a5d2cc34934884b72debb092b098 100644 (file)
@@ -1,5 +1,6 @@
 /*
- * Copyright (c) 2007, 2010-2011 Todd C. Miller <Todd.Miller@courtesan.com>
+ * Copyright (c) 2007, 2010-2011, 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
@@ -16,6 +17,8 @@
 
 #include <config.h>
 
+#ifndef HAVE_MEMRCHR
+
 #include <sys/types.h>
 
 #include "missing.h"
@@ -38,3 +41,4 @@ memrchr(const void *s, int c, size_t n)
     }
     return (void *)0;
 }
+#endif /* HAVE_MEMRCHR */