Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.2:Update
libcap1
feature-tests.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File feature-tests.patch of Package libcap1
Index: libcap-1.10/doc/cap_get_proc.3 =================================================================== --- libcap-1.10.orig/doc/cap_get_proc.3 +++ libcap-1.10/doc/cap_get_proc.3 @@ -15,8 +15,6 @@ arbitrary processes .br .BI "int cap_set_proc(cap_t " cap_p ); .sp -.B #undef _POSIX_SOURCE -.br .B #include <sys/capability.h> .sp .BI "cap_t capgetp(pid_t " pid ", cap_t " cap_d ); Index: libcap-1.10/doc/capget.2 =================================================================== --- libcap-1.10.orig/doc/capget.2 +++ libcap-1.10/doc/capget.2 @@ -6,8 +6,6 @@ .SH NAME capget, capset \- set/get process capabilities .SH SYNOPSIS -.B #undef _POSIX_SOURCE -.br .B #include <sys/capability.h> .sp .BI "int capget(cap_user_header_t " header ", cap_user_data_t " data ); Index: libcap-1.10/libcap/include/sys/capability.h =================================================================== --- libcap-1.10.orig/libcap/include/sys/capability.h +++ libcap-1.10/libcap/include/sys/capability.h @@ -92,20 +92,15 @@ cap_t cap_from_text(const char *); char * cap_to_text(cap_t, ssize_t *); /* - * Linux capability system calls: defined in libcap but only available - * if the following _POSIX_SOURCE is _undefined_ + * Linux capability system calls: defined in libcap */ -#if !defined(_POSIX_SOURCE) - extern int capset(cap_user_header_t header, cap_user_data_t data); extern int capget(cap_user_header_t header, const cap_user_data_t data); extern int capgetp(pid_t pid, cap_t cap_d); extern int capsetp(pid_t pid, cap_t cap_d); extern char const *_cap_names[]; -#endif /* !defined(_POSIX_SOURCE) */ - #ifdef __cplusplus } #endif Index: libcap-1.10/progs/getpcaps.c =================================================================== --- libcap-1.10.orig/progs/getpcaps.c +++ libcap-1.10/progs/getpcaps.c @@ -11,7 +11,6 @@ #include <stdio.h> #include <string.h> #include <stdlib.h> -#undef _POSIX_SOURCE #include <sys/capability.h> static void usage(void) Index: libcap-1.10/progs/setpcaps.c =================================================================== --- libcap-1.10.orig/progs/setpcaps.c +++ libcap-1.10/progs/setpcaps.c @@ -11,7 +11,6 @@ #include <stdio.h> #include <string.h> #include <stdlib.h> -#undef _POSIX_SOURCE #include <sys/capability.h> #include <unistd.h> Index: libcap-1.10/progs/sucap.c =================================================================== --- libcap-1.10.orig/progs/sucap.c +++ libcap-1.10/progs/sucap.c @@ -8,18 +8,18 @@ * privileges. All environment variables are inherited. */ +#define _BSD_SOURCE 1 #include <sys/types.h> #include <errno.h> #include <stdio.h> -#undef _POSIX_SOURCE #include <sys/capability.h> #include <pwd.h> -#define __USE_BSD #include <grp.h> #include <unistd.h> #include <sys/wait.h> #include <errno.h> #include <string.h> +#include <stdlib.h> static void usage(void) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor