Skip to content

Commit

Permalink
remove _XOPEN_SOURCE define as now libiouring is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoward committed Nov 19, 2024
1 parent 58661fc commit 39e0033
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
12 changes: 0 additions & 12 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,10 @@ let package = Package(
name: "CIORingShims",
dependencies: ["CIOURing"],
cSettings: [
.define("_XOPEN_SOURCE=700"),
.define("_DEFAULT_SOURCE"),
.define("\(cqHandlerType.rawValue)=1"),
.unsafeFlags(["-I", SwiftLibRoot] + ASANCFlags),
],
cxxSettings: [
.define("_XOPEN_SOURCE=700"),
.define("_DEFAULT_SOURCE"),
.define("\(cqHandlerType.rawValue)=1"),
.unsafeFlags(["-I", SwiftLibRoot] + ASANCFlags),
]
Expand All @@ -93,14 +89,6 @@ let package = Package(
.product(name: "AsyncQueue", package: "swift-async-queue"),
.product(name: "Logging", package: "swift-log"),
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms")],
cSettings: [
.define("_XOPEN_SOURCE=700"),
.define("_DEFAULT_SOURCE"),
],
cxxSettings: [
.define("_XOPEN_SOURCE=700"),
.define("_DEFAULT_SOURCE"),
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
.unsafeFlags(ASANSwiftFlags),
Expand Down
5 changes: 0 additions & 5 deletions Sources/CIOURing/CIOURing.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@

#pragma once

#define _XOPEN_SOURCE 700
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE 1
#endif

#include <linux/if_ether.h>
#include <linux/if_packet.h>
#include <linux/netlink.h>
Expand Down

0 comments on commit 39e0033

Please sign in to comment.