diff options
Diffstat (limited to 'libxkbfile/src/xkmread.c')
-rw-r--r-- | libxkbfile/src/xkmread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libxkbfile/src/xkmread.c b/libxkbfile/src/xkmread.c index bf46becc1..a8fd04361 100644 --- a/libxkbfile/src/xkmread.c +++ b/libxkbfile/src/xkmread.c @@ -52,7 +52,6 @@ #else #include <X11/X.h> -#define NEED_EVENTS #include <X11/Xproto.h> #include <X11/keysym.h> #include "misc.h" @@ -1216,6 +1215,8 @@ char name[100]; return _XkbDupString(name); break; default: + fseek(file,toc->offset,SEEK_SET); + fread(&tmpTOC,SIZEOF(xkmSectionInfo),1,file); _XkbLibError(_XkbErrBadImplementation, XkbConfigText(tmpTOC.type,XkbMessage),0); break; |