changeset 7128:dc48f2130a76

FreeBSD iconv change/fix
author nexus
date Wed, 28 Aug 2002 23:00:25 +0000
parents 1e47c2e7aa8e
children 8f410b92f1a7
files Gui/interface.c configure subreader.c
diffstat 3 files changed, 5 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/interface.c	Wed Aug 28 22:45:48 2002 +0000
+++ b/Gui/interface.c	Wed Aug 28 23:00:25 2002 +0000
@@ -30,11 +30,7 @@
 #include <sys/types.h>
 
 #ifdef USE_ICONV
- #ifdef __FreeBSD__
-  #include <giconv.h>
- #else
-  #include <iconv.h>
- #endif
+#include <iconv.h>
 #endif
 
 #include "../libmpdemux/stream.h"
--- a/configure	Wed Aug 28 22:45:48 2002 +0000
+++ b/configure	Wed Aug 28 23:00:25 2002 +0000
@@ -3527,11 +3527,8 @@
 
 echocheck "iconv"
 if test "$_iconv" = auto ; then
-  if freebsd ; then
-    _iconv_tmp='#include <giconv.h>'
-  else
-    _iconv_tmp='#include <iconv.h>'
-  fi
+  _iconv_tmp='#include <iconv.h>'
+
   cat > $TMPC << EOF
 #include <stdio.h>
 #include <unistd.h>
@@ -3564,9 +3561,7 @@
 }
 EOF
   _iconv=no
-  if freebsd ; then
-    cc_check  -lm -lgiconv && _iconv=yes
-  elif bsdos || openbsd ; then
+  if freebsd || bsdos || openbsd ; then
     cc_check  -lm -liconv && _iconv=yes
   else
     cc_check -lm && _iconv=yes
@@ -3574,7 +3569,7 @@
 fi
 if test "$_iconv" = yes ; then
   _def_iconv='#define USE_ICONV 1'
-  freebsd && _ld_iconv='-lgiconv'
+  freebsd && _ld_iconv='-liconv'
   bsdos && _ld_iconv='-liconv'
   openbsd && _ld_iconv='-liconv'
 else
--- a/subreader.c	Wed Aug 28 22:45:48 2002 +0000
+++ b/subreader.c	Wed Aug 28 23:00:25 2002 +0000
@@ -19,11 +19,7 @@
 #define ERR ((void *) -1)
 
 #ifdef USE_ICONV
-#ifdef __FreeBSD__
-#include <giconv.h>
-#else
 #include <iconv.h>
-#endif
 char *sub_cp=NULL;
 #endif