summaryrefslogtreecommitdiff
path: root/plan9
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2017-10-14 11:57:51 +0200
committerAaron Crane <arc@cpan.org>2017-10-21 16:53:11 +0100
commitb21d8587d6f2e56db4e5c64099cb03cbde2f8906 (patch)
tree5ad7583d42cd1e51dfd645e752867658d83fd898 /plan9
parentd1f9b933c88f298c6c0c5ed1dc3f9d46df8c05db (diff)
downloadperl-b21d8587d6f2e56db4e5c64099cb03cbde2f8906.tar.gz
Rely on C89 strerror()
This requires a corresponding change to the metaconfig units.
Diffstat (limited to 'plan9')
-rw-r--r--plan9/config.plan912
-rw-r--r--plan9/config_h.sample12
-rw-r--r--plan9/config_sh.sample2
3 files changed, 0 insertions, 26 deletions
diff --git a/plan9/config.plan9 b/plan9/config.plan9
index 3ad7cc76f2..704a96d56e 100644
--- a/plan9/config.plan9
+++ b/plan9/config.plan9
@@ -2375,24 +2375,12 @@
#define FILE_bufsiz(fp) ((fp)->_cnt + (fp)->_ptr - (fp)->_base)
#endif
-/* HAS_STRERROR:
- * This symbol, if defined, indicates that the strerror routine is
- * available to translate error numbers to strings. See the writeup
- * of Strerror() in this file before you try to define your own.
- */
/* HAS_SYS_ERRLIST:
* This symbol, if defined, indicates that the sys_errlist array is
* available to translate error numbers to strings. The extern int
* sys_nerr gives the size of that table.
*/
-/* Strerror:
- * This preprocessor symbol is defined as a macro if strerror() is
- * not available to translate error numbers to strings but sys_errlist[]
- * array is there.
- */
-#define HAS_STRERROR /**/
#define HAS_SYS_ERRLIST /**/
-#define Strerror(e) strerror(e)
/* HAS_STRERROR_R:
* This symbol, if defined, indicates that the strerror_r routine
diff --git a/plan9/config_h.sample b/plan9/config_h.sample
index 0bccc9fc06..2759f372a7 100644
--- a/plan9/config_h.sample
+++ b/plan9/config_h.sample
@@ -2307,24 +2307,12 @@
#define FILE_bufsiz(fp) ((fp)->_cnt + (fp)->_ptr - (fp)->_base)
#endif
-/* HAS_STRERROR:
- * This symbol, if defined, indicates that the strerror routine is
- * available to translate error numbers to strings. See the writeup
- * of Strerror() in this file before you try to define your own.
- */
/* HAS_SYS_ERRLIST:
* This symbol, if defined, indicates that the sys_errlist array is
* available to translate error numbers to strings. The extern int
* sys_nerr gives the size of that table.
*/
-/* Strerror:
- * This preprocessor symbol is defined as a macro if strerror() is
- * not available to translate error numbers to strings but sys_errlist[]
- * array is there.
- */
-#define HAS_STRERROR /**/
#define HAS_SYS_ERRLIST /**/
-#define Strerror(e) strerror(e)
/* HAS_STRERROR_R:
* This symbol, if defined, indicates that the strerror_r routine
diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample
index 0055e3dcd8..2d30cf162d 100644
--- a/plan9/config_sh.sample
+++ b/plan9/config_sh.sample
@@ -557,8 +557,6 @@ d_stdiobase='undef'
d_stdstdio='undef'
d_strchr='define'
d_strcoll='define'
-d_strerrm='strerror(e)'
-d_strerror='define'
d_strerror_l='undef'
d_strerror_r='undef'
d_strftime='define'