Skip to content

Commit

Permalink
Revert "remove _XOPEN_SOURCE define as now libiouring is fixed"
Browse files Browse the repository at this point in the history
This reverts commit 39e0033.

Back this out for now, seems to be causing build errors
  • Loading branch information
lhoward committed Nov 19, 2024
1 parent 39e0033 commit 28d3aa3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,14 @@ 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 @@ -89,6 +93,14 @@ 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: 5 additions & 0 deletions Sources/CIOURing/CIOURing.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@

#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 28d3aa3

Please sign in to comment.