Commit 26f7239a authored by Niveditha Rau's avatar Niveditha Rau Committed by Ulrich Sibiller

Make sure internal headers include required headers

Fixes builds with Solaris Studio 12.3 when lint is enabled, since it no longer ignores *.h files, but complains when they reference undefined typedefs or macros. Signed-off-by: 's avatarNiveditha Rau <Niveditha.Rau@Oracle.COM> Signed-off-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: 's avatarUlrich Sibiller <uli42@gmx.de>
parent 71fb99cb
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
#ifndef _CMAP_H_ #ifndef _CMAP_H_
#define _CMAP_H_ #define _CMAP_H_
#include <nx-X11/Xlib.h>
extern void extern void
_XcmsDeleteCmapRec( _XcmsDeleteCmapRec(
Display *dpy, Display *dpy,
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
#ifndef _CR_H_ #ifndef _CR_H_
#define _CR_H_ #define _CR_H_
#include <nx-X11/Xlib.h>
extern int _XUpdateGCCache( extern int _XUpdateGCCache(
register GC gc, register GC gc,
register unsigned long mask, register unsigned long mask,
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
#ifndef _KEY_H_ #ifndef _KEY_H_
#define _KEY_H_ #define _KEY_H_
#include <nx-X11/Xlib.h>
#include <nx-X11/Xresource.h>
#ifndef NEEDKTABLE #ifndef NEEDKTABLE
extern const unsigned char _XkeyTable[]; extern const unsigned char _XkeyTable[];
#endif #endif
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#ifndef _XINTATOM_H_ #ifndef _XINTATOM_H_
#define _XINTATOM_H_ 1 #define _XINTATOM_H_ 1
#include <nx-X11/Xlib.h>
#include <nx-X11/Xfuncproto.h> #include <nx-X11/Xfuncproto.h>
/* IntAtom.c */ /* IntAtom.c */
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#define _XINTCONN_H_ 1 #define _XINTCONN_H_ 1
#include <nx-X11/Xfuncproto.h> #include <nx-X11/Xfuncproto.h>
#include <nx-X11/Xlib.h>
_XFUNCPROTOBEGIN _XFUNCPROTOBEGIN
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
#ifndef XPRIVATE_H #ifndef XPRIVATE_H
#define XPRIVATE_H #define XPRIVATE_H
#include <nx-X11/Xlib.h>
extern void _XIDHandler(Display *dpy); extern void _XIDHandler(Display *dpy);
extern void _XSeqSyncFunction(Display *dpy); extern void _XSeqSyncFunction(Display *dpy);
extern void _XSetPrivSyncFunction(Display *dpy); extern void _XSetPrivSyncFunction(Display *dpy);
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
#ifndef _XRESINTERNAL_H_ #ifndef _XRESINTERNAL_H_
#define _XRESINTERNAL_H_ #define _XRESINTERNAL_H_
#include <nx-X11/Xlib.h>
#include <nx-X11/Xresource.h>
#include <inttypes.h> #include <inttypes.h>
/* type defines */ /* type defines */
......
...@@ -36,6 +36,8 @@ in this Software without prior written authorization from The Open Group. ...@@ -36,6 +36,8 @@ in this Software without prior written authorization from The Open Group.
#define xmalloc(s) Xmalloc(s) #define xmalloc(s) Xmalloc(s)
#define xfree(s) Xfree(s) #define xfree(s) Xfree(s)
#include <nx-X11/Xlib.h>
#include <nx-X11/Xlibint.h>
#include <nx-X11/Xthreads.h> #include <nx-X11/Xthreads.h>
struct _XCVList { struct _XCVList {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment