]> git.sesse.net Git - vlc/blob - contrib/src/iconv/libiconv-wince-hack.patch
contrib: iconv is always needed by VLC, build it on Windows
[vlc] / contrib / src / iconv / libiconv-wince-hack.patch
1 diff -urNp libiconv.orig/configure libiconv/configure
2 --- libiconv.orig/configure     2009-06-30 22:51:53.000000000 +0200
3 +++ libiconv/configure  2009-11-12 04:41:02.000000000 +0100
4 @@ -20344,6 +20344,7 @@ rm -f conftest*
5  
6  
7  fi
8 +gl_cv_header_signal_h_SIGPIPE=yes
9  { $as_echo "$as_me:$LINENO: result: $gl_cv_header_signal_h_SIGPIPE" >&5
10  $as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; }
11  
12 @@ -23459,7 +23460,6 @@ _ACEOF
13  cat confdefs.h >>conftest.$ac_ext
14  cat >>conftest.$ac_ext <<_ACEOF
15  /* end confdefs.h.  */
16 -#include <signal.h>
17  /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
18  #include <sys/types.h>
19  
20 diff -urNp libiconv.orig/signal.h libiconv/signal.h
21 --- libiconv.orig/signal.h      1970-01-01 01:00:00.000000000 +0100
22 +++ libiconv/signal.h   2009-11-12 04:39:24.000000000 +0100
23 @@ -0,0 +1,11 @@
24 +#ifndef        _SIGNAL_H_
25 +#define        _SIGNAL_H_
26 +
27 +#define        SIGABRT         22      /* Abnormal termination (abort) */
28 +
29 +typedef        void (*__p_sig_fn_t)(int);
30 +#define        SIG_DFL ((__p_sig_fn_t) 0)
31 +#define        SIG_IGN ((__p_sig_fn_t) 1)
32 +#define        SIG_ERR ((__p_sig_fn_t) -1)
33 +
34 +#endif /* Not _SIGNAL_H_ */