File tree Expand file tree Collapse file tree 12 files changed +2
-40
lines changed
Expand file tree Collapse file tree 12 files changed +2
-40
lines changed Original file line number Diff line number Diff line change 4747 * Only one attempt is made to build any given package, no matter how many
4848 * other packages depend on it.
4949 */
50- #define _DEFAULT_SOURCE
51- #define _BSD_SOURCE
5250#include <stdio.h>
5351#include <stdlib.h>
5452#include <unistd.h>
Original file line number Diff line number Diff line change 2323 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2424 */
2525
26- #ifdef HAVE_STRCASESTR
27- # define _GNU_SOURCE /* for strcasestr(3) */
28- #endif
29-
3026#include "compat.h"
3127
3228#include <stdio.h>
Original file line number Diff line number Diff line change 3232 * - Supports overlayfs on a temporary directory or a tmpfs mount.
3333 * - Supports read-only bind mounts.
3434 */
35- #define _GNU_SOURCE
36- #define _XOPEN_SOURCE 700
3735#include <sys/types.h>
3836#include <sys/prctl.h>
3937#include <sys/fsuid.h>
Original file line number Diff line number Diff line change 2222 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2323 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2424 */
25- #define _GNU_SOURCE
2625#include <sys/types.h>
2726#include <sys/mount.h>
2827#include <sys/fsuid.h>
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ echo "CC = $CC" >>$CONFIG_MK
195195echo " CFLAGS = -O2" >> $CONFIG_MK
196196
197197echo " LDFLAGS = -L\$ (TOPDIR)/lib" >> $CONFIG_MK
198- echo " CPPFLAGS = -I. -I\$ (TOPDIR) -I\$ (TOPDIR)/include" >> $CONFIG_MK
198+ echo " CPPFLAGS = -D_DEFAULT_SOURCE -D_GNU_SOURCE - I. -I\$ (TOPDIR) -I\$ (TOPDIR)/include" >> $CONFIG_MK
199199echo " CPPFLAGS += -DXBPS_SYSCONF_PATH=\\\" ${ETCDIR} \\\" " >> $CONFIG_MK
200200echo " CPPFLAGS += -DXBPS_SYSDEFCONF_PATH=\\\" ${SHAREDIR} /xbps.d\\\" " >> $CONFIG_MK
201201echo " CPPFLAGS += -DXBPS_VERSION=\\\" ${VERSION} \\\" " >> $CONFIG_MK
Original file line number Diff line number Diff line change 2323 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2424 */
2525
26- #ifdef HAVE_VASPRINTF
27- # define _GNU_SOURCE /* for vasprintf(3) */
28- #endif
29-
3026#include <stdio.h>
3127#include <stdbool.h>
3228#include <stdlib.h>
Original file line number Diff line number Diff line change 3030
3131#include <stdio.h>
3232#include <stdlib.h>
33- #define _BSD_SOURCE
3433#include <string.h>
35- #undef _BSD_SOURCE
3634#include <strings.h>
3735#include <ctype.h>
3836
Original file line number Diff line number Diff line change 2727 * POSSIBILITY OF SUCH DAMAGE.
2828 */
2929
30- #define _BSD_SOURCE /* for vfork and chroot */
31- #define _DEFAULT_SOURCE /* glibc>=2.20 */
3230#include <sys/types.h>
3331#include <unistd.h>
3432
3836#include <stdlib.h>
3937#include <string.h>
4038
41- #undef _DEFAULT_SOURCE
42- #undef _BSD_SOURCE
4339#include "xbps_api_impl.h"
4440
4541static int
Original file line number Diff line number Diff line change 5757 *
5858 */
5959
60- #ifdef __linux__
61- /* Keep this down to Linux, it can create surprises else where. */
62- #define _GNU_SOURCE
63- #endif
64-
6560#include <sys/types.h>
6661#include <sys/socket.h>
6762
Original file line number Diff line number Diff line change 6262 * SUCH DAMAGE.
6363 */
6464
65- #if defined(__linux__ )
66- #define _GNU_SOURCE
67- #endif
68-
6965#include <sys/types.h>
7066#include <sys/socket.h>
7167
You can’t perform that action at this time.
0 commit comments