diff options
| author | Jan D | 2010-10-22 07:49:47 +0200 |
|---|---|---|
| committer | Jan D | 2010-10-22 07:49:47 +0200 |
| commit | dee186b61d9f2528ed1f2125035dd7e5e5a12f2a (patch) | |
| tree | 2e991f97d72e6571edd739052ab75d26c2d7a90a /src | |
| parent | 48c9482c111b767915f47e398bc7c69dc7d20c57 (diff) | |
| download | emacs-dee186b61d9f2528ed1f2125035dd7e5e5a12f2a.tar.gz emacs-dee186b61d9f2528ed1f2125035dd7e5e5a12f2a.zip | |
Fix compilation with Motif (Bug#7263).
* src/xfns.c: Include Xm/TextF and Xm/List.
(file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog): Make
ANSI prototypes.
* src/xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
MOTIF (Bug#7263).
* src/xrdb.c: Include keyboard.h for MOTIF.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 11 | ||||
| -rw-r--r-- | src/xfns.c | 13 | ||||
| -rw-r--r-- | src/xmenu.c | 1 | ||||
| -rw-r--r-- | src/xrdb.c | 5 |
4 files changed, 22 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1b1de29a0f1..05a0d442149 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2010-10-22 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * xrdb.c: Include keyboard.h for MOTIF. | ||
| 4 | |||
| 5 | * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for | ||
| 6 | MOTIF (Bug#7263). | ||
| 7 | |||
| 8 | * xfns.c: Include Xm/TextF and Xm/List. | ||
| 9 | (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog): Make | ||
| 10 | ANSI prototypes. | ||
| 11 | |||
| 1 | 2010-10-22 Glenn Morris <rgm@gnu.org> | 12 | 2010-10-22 Glenn Morris <rgm@gnu.org> |
| 2 | 13 | ||
| 3 | * Makefile.in (SOME_MACHINE_LISP): Add w32-vars. | 14 | * Makefile.in (SOME_MACHINE_LISP): Add w32-vars. |
diff --git a/src/xfns.c b/src/xfns.c index cb6733e8fa1..b2f8222c6ec 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -99,6 +99,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 99 | #include <Xm/Xm.h> | 99 | #include <Xm/Xm.h> |
| 100 | #include <Xm/DialogS.h> | 100 | #include <Xm/DialogS.h> |
| 101 | #include <Xm/FileSB.h> | 101 | #include <Xm/FileSB.h> |
| 102 | #include <Xm/List.h> | ||
| 103 | #include <Xm/TextF.h> | ||
| 102 | #endif | 104 | #endif |
| 103 | 105 | ||
| 104 | #ifdef USE_LUCID | 106 | #ifdef USE_LUCID |
| @@ -5299,9 +5301,7 @@ DEFUN ("x-uses-old-gtk-dialog", Fx_uses_old_gtk_dialog, | |||
| 5299 | /* Callback for "OK" and "Cancel" on file selection dialog. */ | 5301 | /* Callback for "OK" and "Cancel" on file selection dialog. */ |
| 5300 | 5302 | ||
| 5301 | static void | 5303 | static void |
| 5302 | file_dialog_cb (widget, client_data, call_data) | 5304 | file_dialog_cb (Widget widget, XtPointer client_data, XtPointer call_data) |
| 5303 | Widget widget; | ||
| 5304 | XtPointer call_data, client_data; | ||
| 5305 | { | 5305 | { |
| 5306 | int *result = (int *) client_data; | 5306 | int *result = (int *) client_data; |
| 5307 | XmAnyCallbackStruct *cb = (XmAnyCallbackStruct *) call_data; | 5307 | XmAnyCallbackStruct *cb = (XmAnyCallbackStruct *) call_data; |
| @@ -5315,17 +5315,14 @@ file_dialog_cb (widget, client_data, call_data) | |||
| 5315 | in this case. */ | 5315 | in this case. */ |
| 5316 | 5316 | ||
| 5317 | static void | 5317 | static void |
| 5318 | file_dialog_unmap_cb (widget, client_data, call_data) | 5318 | file_dialog_unmap_cb (Widget widget, XtPointer client_data, XtPointer call_data) |
| 5319 | Widget widget; | ||
| 5320 | XtPointer call_data, client_data; | ||
| 5321 | { | 5319 | { |
| 5322 | int *result = (int *) client_data; | 5320 | int *result = (int *) client_data; |
| 5323 | *result = XmCR_CANCEL; | 5321 | *result = XmCR_CANCEL; |
| 5324 | } | 5322 | } |
| 5325 | 5323 | ||
| 5326 | static Lisp_Object | 5324 | static Lisp_Object |
| 5327 | clean_up_file_dialog (arg) | 5325 | clean_up_file_dialog (Lisp_Object arg) |
| 5328 | Lisp_Object arg; | ||
| 5329 | { | 5326 | { |
| 5330 | struct Lisp_Save_Value *p = XSAVE_VALUE (arg); | 5327 | struct Lisp_Save_Value *p = XSAVE_VALUE (arg); |
| 5331 | Widget dialog = (Widget) p->pointer; | 5328 | Widget dialog = (Widget) p->pointer; |
diff --git a/src/xmenu.c b/src/xmenu.c index 68b442388a5..60b1c2b4595 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -89,6 +89,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 89 | #include <X11/Xaw/Paned.h> | 89 | #include <X11/Xaw/Paned.h> |
| 90 | #endif /* HAVE_XAW3D */ | 90 | #endif /* HAVE_XAW3D */ |
| 91 | #endif /* USE_LUCID */ | 91 | #endif /* USE_LUCID */ |
| 92 | #include "../lwlib/lwlib.h" | ||
| 92 | #else /* not USE_X_TOOLKIT */ | 93 | #else /* not USE_X_TOOLKIT */ |
| 93 | #ifndef USE_GTK | 94 | #ifndef USE_GTK |
| 94 | #include "../oldXMenu/XMenu.h" | 95 | #include "../oldXMenu/XMenu.h" |
diff --git a/src/xrdb.c b/src/xrdb.c index d2898e1d8f8..90a85e287bb 100644 --- a/src/xrdb.c +++ b/src/xrdb.c | |||
| @@ -48,6 +48,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 48 | 48 | ||
| 49 | #include "lisp.h" | 49 | #include "lisp.h" |
| 50 | 50 | ||
| 51 | #ifdef USE_MOTIF | ||
| 52 | /* For Vdouble_click_time. */ | ||
| 53 | #include "keyboard.h" | ||
| 54 | #endif | ||
| 55 | |||
| 51 | extern char *getenv (const char *); | 56 | extern char *getenv (const char *); |
| 52 | 57 | ||
| 53 | extern struct passwd *getpwuid (uid_t); | 58 | extern struct passwd *getpwuid (uid_t); |