File: fix-ftbts-implicit-function-syscall.patch

package info (click to toggle)
cpuinfo 0.0~git20250905.877328f-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,516 kB
  • sloc: cpp: 279,176; ansic: 20,928; python: 604; sh: 469; makefile: 18
file content (17 lines) | stat: -rw-r--r-- 592 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fix FTBTS problem: implicit declaration of function 'syscall'
Author: Shengqi Chen <harry-chen@outlook.com>
Forwarded: not-needed
Last-Update: 2024-09-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -316,6 +316,8 @@
   ENDIF()
 ELSE()
   TARGET_COMPILE_DEFINITIONS(cpuinfo INTERFACE CPUINFO_SUPPORTED_PLATFORM=0)
+  TARGET_COMPILE_DEFINITIONS(cpuinfo PRIVATE _GNU_SOURCE=1)
+  TARGET_COMPILE_DEFINITIONS(cpuinfo_internals PRIVATE _GNU_SOURCE=1)
 ENDIF()
 
 ADD_LIBRARY(${PROJECT_NAME}::cpuinfo ALIAS cpuinfo)