~ubuntu-branches/ubuntu/precise/xorg-server/precise-updates

« back to all changes in this revision

Viewing changes to hw/xfree86/os-support/xf86_OSlib.h

  • Committer: Package Import Robot
  • Author(s): Christopher James Halse Rogers
  • Date: 2012-01-23 16:09:29 UTC
  • mfrom: (1.1.46) (0.11.34 sid)
  • Revision ID: package-import@ubuntu.com-20120123160929-k4xdb9b7xeesiukp
Tags: 2:1.11.3-0ubuntu8
* debian/patches/224_return_BadWindow_not_BadMatch.diff:
  - Fix the error values of a whole slew of window-related calls.
    Fixes some gnome-settings-daemon aborts in XLib (LP: #903973)

Show diffs side-by-side

added added

removed removed

Lines of Context:
370
370
 
371
371
#include <sys/wait.h>   /* May need to adjust this for other OSs */
372
372
 
 
373
/* For PATH_MAX */
 
374
#include "misc.h"
 
375
 
373
376
/* 
374
377
 * Hack originally for ISC 2.2 POSIX headers, but may apply elsewhere,
375
378
 * and it's safe, so just do it.
390
393
# undef _POSIX_SOURCE
391
394
#endif /* _POSIX_SOURCE */
392
395
 
393
 
#if !defined(PATH_MAX)
394
 
# if defined(MAXPATHLEN)
395
 
#  define PATH_MAX MAXPATHLEN
396
 
# else
397
 
#  define PATH_MAX 1024
398
 
# endif /* MAXPATHLEN */
399
 
#endif /* !PATH_MAX */
400
 
 
401
396
 
402
397
#ifndef DEV_MEM
403
398
#define DEV_MEM "/dev/mem"