10_Include-missing-selection-h.diff 758 B

123456789101112131415161718192021
  1. Description: Fix build failure with GCC 4.8
  2. This patches fixes the following build failure:
  3. ../../dix/window.c:887:5: error: implicit declaration of function 'DeleteWindowFromAnySelections' [-Werror=implicit-function-declaration]
  4. by including "selection.h", where the function is prototyped.
  5. Author: Gerardo Malazdrewicz <gerardo@malazdrewicz.com.ar>
  6. Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701372
  7. --- xorg-server-1.12.4/dix/window.c 2012-05-17 14:09:02.000000000 -0300
  8. +++ xorg-server-1.12.4.good/dix/window.c 2013-04-18 11:53:06.787521781 -0300
  9. @@ -131,6 +131,8 @@
  10. #include "xace.h"
  11. #include "exevents.h"
  12. +#include "selection.h"
  13. +
  14. #include <X11/Xatom.h> /* must come after server includes */
  15. /******