Fix crash with not matching definitions of PATH_MAX

This commit is contained in:
Alexander Gottwald 2005-01-11 11:58:12 +00:00
parent 65b893a707
commit d365664c58
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-01-10 Alexander Gottwald <ago at freedesktop dot org>
* winprefs.h:
Fix crash with not matching definitions of PATH_MAX
2005-01-10 Alexander Gottwald <ago at freedesktop dot org>
* winkeybd.h

View File

@ -33,11 +33,13 @@
/* Need Bool */
#include "Xdefs.h"
/* Need TURE */
/* Need TRUE */
#include "misc.h"
/* Need to know how long paths can be... */
#include <limits.h>
/* Xwindows redefines PATH_MAX to at least 1024 */
#include <Xwindows.h>
#ifndef NAME_MAX
#define NAME_MAX PATH_MAX