From 8452d7e082cc23bf11cb997e4385ecb853e1ac07 Mon Sep 17 00:00:00 2001
From: Jim Meyering <jim@meyering.net>
Date: Sat, 25 Jan 1997 06:15:18 +0000
Subject: [PATCH] [!_STRTOL_ERROR]: Define the type `enum strtol_error' only if
 it hasn't already been defined.

---
 lib/xstrtol.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/xstrtol.h b/lib/xstrtol.h
index c5fad2fe82..5f351a7ba7 100644
--- a/lib/xstrtol.h
+++ b/lib/xstrtol.h
@@ -20,16 +20,19 @@
 #  define PARAMS(Args) ()
 # endif
 
+#ifndef _STRTOL_ERROR
 enum strtol_error
   {
     LONGINT_OK, LONGINT_INVALID, LONGINT_INVALID_SUFFIX_CHAR, LONGINT_OVERFLOW
   };
 typedef enum strtol_error strtol_error;
+#endif
 
 strtol_error
   __xstrtol PARAMS ((const char *s, char **ptr, int base,
 		     __unsigned long int *val, const char *valid_suffixes));
 
+#undef _STRTOL_ERROR
 # define _STRTOL_ERROR(Exit_code, Str, Argument_type_string, Err)	\
   do									\
     {									\
-- 
2.39.5