OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.4 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../libcap/libcap-1.10-userland.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2004 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- T2-COPYRIGHT-NOTE-END ---
  17. Pulled from RedHat SRPM to (mostly) fix samba (3.0.x) compilation on
  18. non-x86 systems. Most of this patches are bare hacks - but seem to be
  19. commonly accepted ... :-(
  20. - Rene Rebe <rene.rebe@gmx.net>
  21. --- libcap-1.10/libcap/include/sys/capability.h.foo Fri Nov 9 16:26:25 2001
  22. +++ libcap-1.10/libcap/include/sys/capability.h Fri Nov 9 16:28:47 2001
  23. @@ -21,6 +21,16 @@
  24. */
  25. #include <sys/types.h>
  26. +#include <stdint.h>
  27. +
  28. +/*
  29. + * Make sure we can be included from userland by preventing
  30. + * capability.h from including other kernel headers
  31. + */
  32. +/* #define _LINUX_TYPES_H */
  33. +#define _LINUX_FS_H
  34. +typedef uint32_t __u32;
  35. +
  36. #include <linux/capability.h>
  37. /*