aboutsummaryrefslogtreecommitdiff
path: root/converters/dumpasn1/files/patch-dumpasn1.c
diff options
context:
space:
mode:
Diffstat (limited to 'converters/dumpasn1/files/patch-dumpasn1.c')
-rw-r--r--converters/dumpasn1/files/patch-dumpasn1.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/converters/dumpasn1/files/patch-dumpasn1.c b/converters/dumpasn1/files/patch-dumpasn1.c
new file mode 100644
index 000000000000..bd4d367d9de7
--- /dev/null
+++ b/converters/dumpasn1/files/patch-dumpasn1.c
@@ -0,0 +1,25 @@
+--- dumpasn1.c.orig Tue Nov 15 12:12:53 2005
++++ dumpasn1.c Tue Nov 15 12:13:06 2005
+@@ -297,11 +297,13 @@
+ beginning with a '$' uses the appropriate environment variable. In
+ addition under Unix we also walk down $PATH looking for it */
+
++#ifndef CONFIG_NAME
+ #ifdef __TANDEM_NSK__
+ #define CONFIG_NAME "asn1cfg"
+ #else
+ #define CONFIG_NAME "dumpasn1.cfg"
+ #endif /* __TANDEM_NSK__ */
++#endif
+
+ #if defined( __TANDEM_NSK__ )
+
+@@ -1215,7 +1217,7 @@
+ lineLength++;
+ i++; /* We've read two characters for a wchar_t */
+ #if defined( __WIN32__ ) || \
+- ( defined( __UNIX__ ) && !( defined( __MACH__ ) || defined( __OpenBSD__ ) ) )
++ ( defined( __UNIX__ ) && !( defined( __FreeBSD__ ) && __FreeBSD__ < 5 ) && !( defined( __MACH__ ) || defined( __OpenBSD__ ) ) )
+
+ wprintf( L"%c", wCh );
+ #else