Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
0b35ed87
Unverified
Commit
0b35ed87
authored
Sep 26, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: fix __noreturn on bionic
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
52a11c3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
compiler.h
src/lxc/compiler.h
+14
-6
No files found.
src/lxc/compiler.h
View file @
0b35ed87
...
@@ -20,6 +20,8 @@
...
@@ -20,6 +20,8 @@
#ifndef __LXC_COMPILER_H
#ifndef __LXC_COMPILER_H
#define __LXC_COMPILER_H
#define __LXC_COMPILER_H
#include <sys/cdefs.h>
#include "config.h"
#include "config.h"
#ifndef thread_local
#ifndef thread_local
...
@@ -38,12 +40,18 @@
...
@@ -38,12 +40,18 @@
#define __fallthrough
#define __fallthrough
#endif
#endif
#ifndef _noreturn_
#ifndef __noreturn
#if __STDC_VERSION__ >= 201112L && !IS_BIONIC
# if __STDC_VERSION__ >= 201112L
#define __noreturn _Noreturn
# if !IS_BIONIC
#else
# define __noreturn _Noreturn
#define __noreturn __attribute__((noreturn))
# else
#endif
# define __noreturn __attribute__((__noreturn__))
# endif
# elif IS_BIONIC
# define __noreturn __attribute__((__noreturn__))
# else
# define __noreturn __attribute__((noreturn))
# endif
#endif
#endif
#define __cgfsng_ops
#define __cgfsng_ops
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment