aboutsummaryrefslogtreecommitdiff
path: root/dirent/versionsort.c
diff options
context:
space:
mode:
Diffstat (limited to 'dirent/versionsort.c')
-rw-r--r--dirent/versionsort.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/dirent/versionsort.c b/dirent/versionsort.c
index 5ec15e83e9..ca38c2dc03 100644
--- a/dirent/versionsort.c
+++ b/dirent/versionsort.c
@@ -15,16 +15,10 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
-/* We need to avoid the header declaration of versionsort64, because
- the types don't match versionsort and then the compiler will
- complain about the mismatch when we do the alias below. */
-#define versionsort64 __renamed_versionsort64
-
#include <dirent.h>
-#undef versionsort64
-
-#include <string.h>
+#if !_DIRENT_MATCHES_DIRENT64
+# include <string.h>
int
versionsort (const struct dirent **a, const struct dirent **b)
@@ -32,6 +26,4 @@ versionsort (const struct dirent **a, const struct dirent **b)
return __strverscmp ((*a)->d_name, (*b)->d_name);
}
-#if _DIRENT_MATCHES_DIRENT64
-weak_alias (versionsort, versionsort64)
#endif