• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/attr/0003-portability-fixes.patch
Thomas PetazzoniThomas Petazzoni committed e16796942a621 Mar 2015
Raw file
Source viewDiff to previous
 
1
From 92247401984dd9a80d9d0c8c030692323f980678 Mon Sep 17 00:00:00 2001
2
From: Emmanuel Dreyfus <manu@netbsd.org>
3
Date: Mon, 30 Jun 2014 13:06:05 +0000
4
Subject: Portability fixes
5
​
6
- <features.h>  is Linux specific
7
- Define __THROW for non glibc based systems
8
​
9
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10
---
11
(limited to 'include/xattr.h')
12
​
13
diff --git a/include/xattr.h b/include/xattr.h
14
index 070d7c5..fd1f268 100644
15
--- a/include/xattr.h
16
+++ b/include/xattr.h
17
@@ -20,7 +20,18 @@
18
 #ifndef __XATTR_H__
19
 #define __XATTR_H__
20
 
21
+#if defined(linux)
22
 #include <features.h>
23
+#endif
24
+
25
+/* Portability non glibc c++ build systems */
26
+#ifndef __THROW
27
+# if defined __cplusplus
28
+#  define __THROW       throw ()
29
+# else
30
+#  define __THROW
31
+# endif
32
+#endif
33
 
34
 #include <errno.h>
35
 #ifndef ENOATTR
36
--
37
cgit v0.9.0.2
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.