Mercurial > hg > xemacs-beta
comparison src/sunOS-fix.c @ 771:943eaba38521
[xemacs-hg @ 2002-03-13 08:51:24 by ben]
The big ben-mule-21-5 check-in!
Various files were added and deleted. See CHANGES-ben-mule.
There are still some test suite failures. No crashes, though.
Many of the failures have to do with problems in the test suite itself
rather than in the actual code. I'll be addressing these in the next
day or so -- none of the test suite failures are at all critical.
Meanwhile I'll be trying to address the biggest issues -- i.e. build
or run failures, which will almost certainly happen on various platforms.
All comments should be sent to ben@xemacs.org -- use a Cc: if necessary
when sending to mailing lists. There will be pre- and post- tags,
something like
pre-ben-mule-21-5-merge-in, and
post-ben-mule-21-5-merge-in.
author | ben |
---|---|
date | Wed, 13 Mar 2002 08:54:06 +0000 |
parents | abe6d1db359e |
children |
comparison
equal
deleted
inserted
replaced
770:336a418893b5 | 771:943eaba38521 |
---|---|
15 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 15 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
16 Boston, MA 02111-1307, USA. */ | 16 Boston, MA 02111-1307, USA. */ |
17 | 17 |
18 /* Synched up with: Not in FSF. */ | 18 /* Synched up with: Not in FSF. */ |
19 | 19 |
20 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch. | 20 int sunOS_fix_is_empty; |
21 There is a stupid bug in the SunOS libc.a: two functions which X11r5 | |
22 uses, mbstowcs() and wcstombs(), are unusable when programs are | |
23 statically linked (as Emacs must be) because the static version of | |
24 libc.a contains the *dynamic* versions of these functions. These | |
25 functions don't seem to be called when Emacs is running, so it's | |
26 enough to define stubs for them. | |
27 | |
28 This appears to be fixed in SunOS 4.1.2. | |
29 */ | |
30 | |
31 #include <config.h> | |
32 | |
33 #ifndef I18N4 /* we actually need these from the library in this case. */ | |
34 | |
35 #ifdef __STDC__ | |
36 | |
37 #include <stdlib.h> | |
38 | |
39 size_t mbstowcs (wchar_t *foo, const char *bar, size_t baz) | |
40 { | |
41 abort (); | |
42 return 0; | |
43 } | |
44 | |
45 size_t wcstombs (char *foo, const wchar_t *bar, size_t baz) | |
46 { | |
47 abort (); | |
48 return 0; | |
49 } | |
50 | |
51 #else | |
52 | |
53 void mbstowcs () | |
54 { | |
55 abort (); | |
56 } | |
57 | |
58 void wcstombs () | |
59 { | |
60 abort (); | |
61 } | |
62 | |
63 #endif /* __STDC__ */ | |
64 | |
65 #endif /* !I18N4 */ |