Patch from Frederic Koehler <f.koehler427@gmail.com>:
These implicit definitions cause segfaults on x64 because
the implicit return type is a 32-bit signed int, rather than a pointer
type.
#include <sys/param.h>
#endif
#include <string.h>
+#include <libgen.h>
#define X_INCLUDE_DIRENT_H
#define XOS_USE_XT_LOCKING
#include <X11/Xos_r.h>
extern DtDtsMMDatabase *_DtDtsMMGet(const char *name);
extern char **_DtDtsMMListDb(void);
+/* FIXME: document */
+extern int *_DtDtsMMGetDbName(DtDtsMMDatabase *db, DtShmBoson boson);
+
+
/* Name Comparison functions:
* These routines can be passed in to the corresponding sort function to
* sort by name.
#include <X11/cursorfont.h>
#include "ButtonP.h"
#include <Xm/ManagerP.h>
+#include <Xm/DrawP.h>
#include <Dt/Control.h>
#include <Dt/MacrosP.h>
#include <Dt/DtStrDefs.h>
#include <Xm/SeparatoG.h>
#include <Xm/DialogS.h>
#include <Xm/ColorObjP.h>
+#include <Xm/TextF.h>
#include <X11/Xatom.h>
#include <X11/keysymdef.h>
#include <Dt/DtP.h>
#include <Dt/Message.h>
#include <Dt/WsmM.h>
+#include <Dt/EnvControlP.h>
#endif /* WSM */
/* Busy is also defined in the BMS -> bms.h. This conflicts with
#include "WmColormap.h"
#include "WmError.h"
#include "WmResParse.h"
+#include "WmIconBox.h"
#include "WmGlobal.h"
#include "WmHelp.h"
#include "WmResNames.h"
+#include "WmIPlace.h"
#include <X11/Xutil.h>
#include "WmICCC.h"
#include <Xm/Xm.h>