libdmx: Add fso-specs to DEPENDS
[openembedded.git] / recipes / xorg-lib / libxt / pr10970-header-fix.patch
blob2acafb8b34d3b156345e0feced703ed9d1a244fc
1 diff --git a/include/X11/CallbackI.h b/include/X11/CallbackI.h
2 index 4ae08ab..64e8152 100644
3 --- a/include/X11/CallbackI.h
4 +++ b/include/X11/CallbackI.h
5 @@ -58,6 +58,8 @@ typedef XrmResource **CallbackTable;
6 #define _XtCBCalling 1
7 #define _XtCBFreeAfterCalling 2
9 +_XFUNCPROTOBEGIN
11 typedef struct internalCallbackRec {
12 unsigned short count;
13 char is_padded; /* contains NULL padding for external form */
14 @@ -115,3 +117,5 @@ extern void _XtCallConditionalCallbackList(
15 XtPointer /* call_data */,
16 _XtConditionProc /* cond_proc */
19 +_XFUNCPROTOEND
20 diff --git a/include/X11/CompositeP.h b/include/X11/CompositeP.h
21 index ed055b2..e93275a 100644
22 --- a/include/X11/CompositeP.h
23 +++ b/include/X11/CompositeP.h
24 @@ -52,6 +52,8 @@ SOFTWARE.
26 #include <X11/Composite.h>
28 +_XFUNCPROTOBEGIN
30 /************************************************************************
32 * Additional instance fields for widgets of (sub)class 'Composite'
33 @@ -101,6 +103,8 @@ typedef struct _CompositeClassRec {
35 externalref CompositeClassRec compositeClassRec;
37 +_XFUNCPROTOEND
39 #define XtCompositeExtensionVersion 2L
40 #define XtInheritGeometryManager ((XtGeometryHandler) _XtInherit)
41 #define XtInheritChangeManaged ((XtWidgetProc) _XtInherit)
42 diff --git a/include/X11/ConstrainP.h b/include/X11/ConstrainP.h
43 index a90d19a..7030a34 100644
44 --- a/include/X11/ConstrainP.h
45 +++ b/include/X11/ConstrainP.h
46 @@ -52,6 +52,8 @@ SOFTWARE.
48 #include <X11/Constraint.h>
50 +_XFUNCPROTOBEGIN
52 typedef struct _ConstraintPart {
53 XtPointer mumble; /* No new fields, keep C compiler happy */
54 } ConstraintPart;
55 @@ -88,6 +90,8 @@ typedef struct _ConstraintClassRec {
57 externalref ConstraintClassRec constraintClassRec;
59 +_XFUNCPROTOEND
61 #define XtConstraintExtensionVersion 1L
63 #endif /* _XtConstraintP_h */
64 diff --git a/include/X11/Constraint.h b/include/X11/Constraint.h
65 index 9bb962e..b8bd902 100644
66 --- a/include/X11/Constraint.h
67 +++ b/include/X11/Constraint.h
68 @@ -50,11 +50,15 @@ SOFTWARE.
69 #ifndef _XtConstraint_h
70 #define _XtConstraint_h
72 +_XFUNCPROTOBEGIN
74 typedef struct _ConstraintClassRec *ConstraintWidgetClass;
76 #ifndef CONSTRAINT
77 externalref WidgetClass constraintWidgetClass;
78 #endif
80 +_XFUNCPROTOEND
82 #endif /* _XtConstraint_h */
83 /* DON'T ADD STUFF AFTER THIS #endif */
84 diff --git a/include/X11/ConvertI.h b/include/X11/ConvertI.h
85 index 02c0e5c..f3f7fb0 100644
86 --- a/include/X11/ConvertI.h
87 +++ b/include/X11/ConvertI.h
88 @@ -48,6 +48,8 @@ SOFTWARE.
89 ******************************************************************/
90 /* $XFree86: xc/lib/Xt/ConvertI.h,v 1.3 2001/12/14 19:56:09 dawes Exp $ */
92 +_XFUNCPROTOBEGIN
94 /* Representation types */
96 extern XrmQuark _XtQString;
97 @@ -94,3 +96,4 @@ extern Boolean _XtConvert(
99 void _XtConvertInitialize(void);
101 +_XFUNCPROTOEND
102 diff --git a/include/X11/Core.h b/include/X11/Core.h
103 index ff6cb75..e1a7c28 100644
104 --- a/include/X11/Core.h
105 +++ b/include/X11/Core.h
106 @@ -53,6 +53,8 @@ SOFTWARE.
107 #ifndef _XtCore_h
108 #define _XtCore_h
110 +_XFUNCPROTOBEGIN
112 typedef struct _WidgetClassRec *CoreWidgetClass;
113 typedef struct _WidgetRec *CoreWidget;
114 externalref WidgetClass coreWidgetClass;
115 @@ -62,5 +64,7 @@ externalref WidgetClass widgetClass;
117 #endif
119 +_XFUNCPROTOEND
121 #endif /* _XtCore_h */
122 /* DON'T ADD STUFF AFTER THIS #endif */
123 diff --git a/include/X11/CoreP.h b/include/X11/CoreP.h
124 index e07f085..57836e6 100644
125 --- a/include/X11/CoreP.h
126 +++ b/include/X11/CoreP.h
127 @@ -55,6 +55,8 @@ SOFTWARE.
129 #include <X11/Core.h>
131 +_XFUNCPROTOBEGIN
133 externalref int _XtInheritTranslations;
135 #define XtInheritTranslations ((String) &_XtInheritTranslations)
136 @@ -167,5 +169,7 @@ typedef struct _WidgetClassRec {
137 externalref WidgetClassRec widgetClassRec;
138 #define coreClassRec widgetClassRec
140 +_XFUNCPROTOEND
142 #endif /* _XtCoreP_h */
143 /* DON'T ADD STUFF AFTER THIS #endif */
144 diff --git a/include/X11/CreateI.h b/include/X11/CreateI.h
145 index 87abb1d..e0ca9a3 100644
146 --- a/include/X11/CreateI.h
147 +++ b/include/X11/CreateI.h
148 @@ -3,6 +3,8 @@
149 #ifndef _XtcreateI_h
150 #define _XtcreateI_h
152 +_XFUNCPROTOBEGIN
154 extern Widget _XtCreateWidget(String name, WidgetClass widget_class,
155 Widget parent, ArgList args, Cardinal num_args,
156 XtTypedArgList typed_args,
157 @@ -18,9 +20,12 @@ extern Widget _XtAppCreateShell(String name, String class,
158 Cardinal num_typed_args);
159 extern Widget _XtCreateHookObj(Screen *screen);
161 +_XFUNCPROTOEND
163 #include <stdarg.h>
165 +_XFUNCPROTOBEGIN
167 /* VarCreate.c */
168 extern Widget _XtVaOpenApplication(XtAppContext *app_context_return,
169 _Xconst char* application_class,
170 @@ -34,4 +39,6 @@ extern Widget _XtVaAppInitialize(XtAppContext *app_context_return,
171 int *argc_in_out, String *argv_in_out,
172 String *fallback_resources, va_list var_args);
174 +_XFUNCPROTOEND
176 #endif /* _XtcreateI_h */
177 diff --git a/include/X11/EventI.h b/include/X11/EventI.h
178 index 00858e7..d2d1d0f 100644
179 --- a/include/X11/EventI.h
180 +++ b/include/X11/EventI.h
181 @@ -65,6 +65,8 @@ typedef struct _XtGrabRec *XtGrabList;
183 #include "PassivGraI.h"
185 +_XFUNCPROTOBEGIN
187 extern void _XtEventInitialize(
188 void
190 @@ -131,4 +133,6 @@ extern void _XtFillAncestorList(Widget **listPtr, int *maxElemsPtr,
191 /* NextEvent.c */
192 extern Boolean XtAppPeekEvent_SkipTimer;
194 +_XFUNCPROTOEND
196 #endif /* _Event_h_ */
197 diff --git a/include/X11/HookObjI.h b/include/X11/HookObjI.h
198 index c9a22a2..c0858c2 100644
199 --- a/include/X11/HookObjI.h
200 +++ b/include/X11/HookObjI.h
201 @@ -29,6 +29,8 @@ in this Software without prior written authorization from The Open Group.
202 #ifndef _XtHookObjI_h
203 #define _XtHookObjI_h
205 +_XFUNCPROTOBEGIN
207 /* This object is implementation-dependent and private to the library. */
209 typedef struct _HookObjRec *HookObject;
210 @@ -66,6 +68,8 @@ typedef struct _HookObjClassRec {
212 externalref HookObjClassRec hookObjClassRec;
214 +_XFUNCPROTOEND
216 #endif /* ifndef _Xt_HookObjI_h */
219 diff --git a/include/X11/InitialI.h b/include/X11/InitialI.h
220 index c2fe47c..2ae9b74 100644
221 --- a/include/X11/InitialI.h
222 +++ b/include/X11/InitialI.h
223 @@ -84,6 +84,8 @@ SOFTWARE.
224 #include <X11/Xos.h>
225 #include <X11/Xpoll.h>
227 +_XFUNCPROTOBEGIN
229 typedef struct _TimerEventRec {
230 struct timeval te_timer_value;
231 struct _TimerEventRec *te_next;
232 @@ -426,4 +428,6 @@ extern XrmDatabase _XtPreparseCommandLine(XrmOptionDescRec *urlist,
233 String *applName, String *displayName,
234 String *language);
236 +_XFUNCPROTOEND
238 #endif /* _XtinitialI_h */
239 diff --git a/include/X11/IntrinsicI.h b/include/X11/IntrinsicI.h
240 index d749867..d88166f 100644
241 --- a/include/X11/IntrinsicI.h
242 +++ b/include/X11/IntrinsicI.h
243 @@ -194,6 +194,8 @@ SOFTWARE.
244 #define ERRORDB "/usr/lib/X11/XtErrorDB"
245 #endif
247 +_XFUNCPROTOBEGIN
249 extern String XtCXtToolkitError;
251 extern void _XtAllocError(
252 @@ -257,5 +259,7 @@ extern char* __XtCalloc (
253 #define __XtCalloc XtCalloc
254 #endif
256 +_XFUNCPROTOEND
258 #endif /* _XtintrinsicI_h */
259 /* DON'T ADD STUFF AFTER THIS #endif */
260 diff --git a/include/X11/Object.h b/include/X11/Object.h
261 index 96723b1..2c84aaf 100644
262 --- a/include/X11/Object.h
263 +++ b/include/X11/Object.h
264 @@ -50,11 +50,16 @@ SOFTWARE.
265 #ifndef _XtObject_h
266 #define _XtObject_h
268 +_XFUNCPROTOBEGIN
270 typedef struct _ObjectRec *Object;
271 typedef struct _ObjectClassRec *ObjectClass;
273 #ifndef OBJECT
274 externalref WidgetClass objectClass;
275 #endif
277 +_XFUNCPROTOEND
279 #endif /* _XtObject_h */
280 /* DON'T ADD STUFF AFTER THIS #endif */
281 diff --git a/include/X11/ObjectP.h b/include/X11/ObjectP.h
282 index a24564e..0f484d2 100644
283 --- a/include/X11/ObjectP.h
284 +++ b/include/X11/ObjectP.h
285 @@ -52,6 +52,8 @@ SOFTWARE.
287 #include <X11/Object.h>
289 +_XFUNCPROTOBEGIN
291 /**********************************************************
292 * Object Instance Data Structures
294 @@ -132,6 +134,8 @@ typedef struct _ObjectClassRec {
296 externalref ObjectClassRec objectClassRec;
298 +_XFUNCPROTOEND
300 #define XtObjectExtensionVersion 1L
301 #define XtInheritAllocate ((XtAllocateProc) _XtInherit)
302 #define XtInheritDeallocate ((XtDeallocateProc) _XtInherit)
303 diff --git a/include/X11/PassivGraI.h b/include/X11/PassivGraI.h
304 index 02e2964..10591ac 100644
305 --- a/include/X11/PassivGraI.h
306 +++ b/include/X11/PassivGraI.h
307 @@ -60,6 +60,8 @@ in this Software without prior written authorization from The Open Group.
308 #define KEYBOARD TRUE
309 #define POINTER FALSE
311 +_XFUNCPROTOBEGIN
313 typedef enum {
314 XtNoServerGrab,
315 XtPassiveServerGrab,
316 @@ -183,4 +185,6 @@ extern void _XtClearAncestorCache(
317 Widget /* widget */
320 +_XFUNCPROTOEND
322 #endif /* _PDI_h_ */
323 diff --git a/include/X11/RectObj.h b/include/X11/RectObj.h
324 index 07615fa..dced5c3 100644
325 --- a/include/X11/RectObj.h
326 +++ b/include/X11/RectObj.h
327 @@ -50,11 +50,16 @@ SOFTWARE.
328 #ifndef _XtRect_h
329 #define _XtRect_h
331 +_XFUNCPROTOBEGIN
333 typedef struct _RectObjRec *RectObj;
334 typedef struct _RectObjClassRec *RectObjClass;
336 #ifndef RECTOBJ
337 externalref WidgetClass rectObjClass;
338 #endif
340 +_XFUNCPROTOEND
342 #endif /* _XtRect_h */
343 /* DON'T ADD STUFF AFTER THIS #endif */
344 diff --git a/include/X11/RectObjP.h b/include/X11/RectObjP.h
345 index ca3b8ad..d6ffb78 100644
346 --- a/include/X11/RectObjP.h
347 +++ b/include/X11/RectObjP.h
348 @@ -53,6 +53,8 @@ SOFTWARE.
349 #include <X11/RectObj.h>
350 #include <X11/ObjectP.h>
352 +_XFUNCPROTOBEGIN
354 /**********************************************************
355 * Rectangle Object Instance Data Structures
357 @@ -126,4 +128,6 @@ typedef struct _RectObjClassRec {
359 externalref RectObjClassRec rectObjClassRec;
361 +_XFUNCPROTOEND
363 #endif /*_Xt_RectObjP_h_*/
364 diff --git a/include/X11/ResourceI.h b/include/X11/ResourceI.h
365 index d6ed1df..3db97f8 100644
366 --- a/include/X11/ResourceI.h
367 +++ b/include/X11/ResourceI.h
368 @@ -61,6 +61,8 @@ SOFTWARE.
369 #define StringToName(string) XrmStringToName(string)
370 #define StringToClass(string) XrmStringToClass(string)
372 +_XFUNCPROTOBEGIN
374 extern void _XtDependencies(
375 XtResourceList * /* class_resp */,
376 Cardinal * /* class_num_resp */,
377 @@ -96,5 +98,6 @@ extern XrmResourceList* _XtCreateIndirectionTable(XtResourceList resources,
378 Cardinal num_resources);
379 extern void _XtResourceListInitialize(void);
381 +_XFUNCPROTOEND
383 #endif /* _XtresourceI_h */
384 diff --git a/include/X11/ShellP.h b/include/X11/ShellP.h
385 index 2b08c3f..7297d33 100644
386 --- a/include/X11/ShellP.h
387 +++ b/include/X11/ShellP.h
388 @@ -67,6 +67,8 @@ SOFTWARE.
389 * *****
392 +_XFUNCPROTOBEGIN
394 /***********************************************************************
396 * Shell Widget Private Data
397 @@ -214,8 +216,12 @@ typedef struct {
398 WMShellPart wm;
399 } WMShellRec, *WMShellWidget;
401 +_XFUNCPROTOEND
403 #include <X11/VendorP.h>
405 +_XFUNCPROTOBEGIN
407 /***********************************************************************
409 * TransientShell Widget Private Data
410 @@ -425,4 +431,6 @@ typedef struct {
411 SessionShellPart session;
412 } SessionShellRec, *SessionShellWidget;
414 +_XFUNCPROTOEND
416 #endif /* _XtShellPrivate_h */
417 diff --git a/include/X11/ThreadsI.h b/include/X11/ThreadsI.h
418 index 1492d77..28cbc98 100644
419 --- a/include/X11/ThreadsI.h
420 +++ b/include/X11/ThreadsI.h
421 @@ -81,6 +81,8 @@ typedef void (*ThreadAppRestoreLockProc)(
422 Boolean* /* pushed_thread */
425 +_XFUNCPROTOBEGIN
427 extern void (*_XtProcessLock)(
428 void
430 @@ -93,6 +95,8 @@ extern void (*_XtInitAppLock)(
431 XtAppContext /* app */
434 +_XFUNCPROTOEND
436 #define INIT_APP_LOCK(app) if(_XtInitAppLock) (*_XtInitAppLock)(app)
437 #define FREE_APP_LOCK(app) if(app && app->free_lock)(*app->free_lock)(app)
439 diff --git a/include/X11/TranslateI.h b/include/X11/TranslateI.h
440 index 1224875..6cc3099 100644
441 --- a/include/X11/TranslateI.h
442 +++ b/include/X11/TranslateI.h
443 @@ -342,6 +342,8 @@ typedef struct _TMGlobalRec{
444 #endif /* TRACE_TM */
445 }TMGlobalRec;
447 +_XFUNCPROTOBEGIN
449 extern TMGlobalRec _XtGlobalTM;
451 #define TM_MOD_SEGMENT_SIZE 16
452 @@ -604,3 +606,4 @@ extern void _XtUnmergeTranslations(
453 /* TMKey.c */
454 extern void _XtAllocTMContext(XtPerDisplay pd);
456 +_XFUNCPROTOEND
457 diff --git a/include/X11/VarargsI.h b/include/X11/VarargsI.h
458 index e15404a..76ce9bc 100644
459 --- a/include/X11/VarargsI.h
460 +++ b/include/X11/VarargsI.h
461 @@ -34,6 +34,8 @@ in this Software without prior written authorization from The Open Group.
463 /* private routines */
465 +_XFUNCPROTOBEGIN
467 extern void _XtCountVaList(
468 va_list /*var*/, int* /*total_count*/, int* /*typed_count*/
470 @@ -62,4 +64,6 @@ extern void _XtGetSubresources(
471 Widget /*w*/, XtPointer /*base*/, const char* /*name*/, const char* /*class*/, XtResourceList /*resources*/, Cardinal /*num_resources*/, ArgList /*args*/, Cardinal /*num_args*/, XtTypedArgList /*typed_args*/, Cardinal /*num_typed_args*/
474 +_XFUNCPROTOEND
476 #endif /* _VarargsI_h_ */
477 diff --git a/include/X11/Vendor.h b/include/X11/Vendor.h
478 index 65e7c38..633d17a 100644
479 --- a/include/X11/Vendor.h
480 +++ b/include/X11/Vendor.h
481 @@ -65,7 +65,11 @@ SOFTWARE.
483 typedef struct _VendorShellClassRec *VendorShellWidgetClass;
485 +_XFUNCPROTOBEGIN
487 externalref WidgetClass vendorShellWidgetClass;
489 +_XFUNCPROTOEND
491 #endif /* _XtVendor_h */
492 /* DON'T ADD STUFF AFTER THIS #endif */
493 diff --git a/include/X11/VendorP.h b/include/X11/VendorP.h
494 index 08bf689..e60857d 100644
495 --- a/include/X11/VendorP.h
496 +++ b/include/X11/VendorP.h
497 @@ -72,6 +72,8 @@ SOFTWARE.
499 /* New fields for the VendorShell widget class record */
501 +_XFUNCPROTOBEGIN
503 typedef struct {
504 XtPointer extension; /* pointer to extension record */
505 } VendorShellClassPart;
506 @@ -100,4 +102,6 @@ typedef struct {
507 VendorShellPart vendor;
508 } VendorShellRec, *VendorShellWidget;
510 +_XFUNCPROTOEND
512 #endif /* _XtVendorPrivate_h */