Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-libpciaccess: Commit

external/libpciaccess


Commit MetaInfo

Révisionb14696a55796e739624bbda4f772427032efff2a (tree)
l'heure2015-05-01 20:57:34
AuteurJulien Cristau <jcristau@debi...>
CommiterJulien Cristau

Message de Log

Include config.h before anything else in *.c

Debian bug#749008 <https://bugs.debian.org/749008>

Reported-by: Michael Tautschnig <mt@debian.org>
Signed-off-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>

Change Summary

Modification

--- a/src/common_capability.c
+++ b/src/common_capability.c
@@ -31,6 +31,9 @@
3131 *
3232 * \author Ian Romanick <idr@us.ibm.com>
3333 */
34+#ifdef HAVE_CONFIG_H
35+#include "config.h"
36+#endif
3437
3538 #include <stdlib.h>
3639 #include <stdio.h>
--- a/src/common_init.c
+++ b/src/common_init.c
@@ -28,6 +28,9 @@
2828 *
2929 * \author Ian Romanick <idr@us.ibm.com>
3030 */
31+#ifdef HAVE_CONFIG_H
32+#include "config.h"
33+#endif
3134
3235 #include <stdlib.h>
3336 #include <errno.h>
--- a/src/common_interface.c
+++ b/src/common_interface.c
@@ -28,6 +28,9 @@
2828 *
2929 * \author Ian Romanick <idr@us.ibm.com>
3030 */
31+#ifdef HAVE_CONFIG_H
32+#include "config.h"
33+#endif
3134
3235 #include <stdlib.h>
3336 #include <string.h>
--- a/src/common_io.c
+++ b/src/common_io.c
@@ -22,6 +22,9 @@
2222 * Author:
2323 * Adam Jackson <ajax@redhat.com>
2424 */
25+#ifdef HAVE_CONFIG_H
26+#include "config.h"
27+#endif
2528
2629 #include <stdlib.h>
2730 #include <string.h>
--- a/src/common_iterator.c
+++ b/src/common_iterator.c
@@ -28,6 +28,9 @@
2828 *
2929 * \author Ian Romanick <idr@us.ibm.com>
3030 */
31+#ifdef HAVE_CONFIG_H
32+#include "config.h"
33+#endif
3134
3235 #include <stdlib.h>
3336 #include <string.h>
--- a/src/common_map.c
+++ b/src/common_map.c
@@ -21,6 +21,9 @@
2121 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2222 * DEALINGS IN THE SOFTWARE.
2323 */
24+#ifdef HAVE_CONFIG_H
25+#include "config.h"
26+#endif
2427
2528 #include <sys/types.h>
2629 #include <sys/mman.h>
--- a/src/common_vgaarb_stub.c
+++ b/src/common_vgaarb_stub.c
@@ -23,6 +23,9 @@
2323 * OTHER DEALINGS IN THE SOFTWARE.
2424 *
2525 */
26+#ifdef HAVE_CONFIG_H
27+#include "config.h"
28+#endif
2629
2730 #include <stdio.h>
2831 #include "pciaccess.h"
--- a/src/linux_devmem.c
+++ b/src/linux_devmem.c
@@ -32,8 +32,9 @@
3232 *
3333 * \author Ian Romanick <idr@us.ibm.com>
3434 */
35-
36-#define _GNU_SOURCE
35+#ifdef HAVE_CONFIG_H
36+#include "config.h"
37+#endif
3738
3839 #include <stdlib.h>
3940 #include <string.h>
--- a/src/openbsd_pci.c
+++ b/src/openbsd_pci.c
@@ -13,6 +13,9 @@
1313 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1414 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1515 */
16+#ifdef HAVE_CONFIG_H
17+#include "config.h"
18+#endif
1619
1720 #include <sys/param.h>
1821 #include <sys/ioctl.h>
--- a/src/solx_devfs.c
+++ b/src/solx_devfs.c
@@ -25,6 +25,9 @@
2525 /*
2626 * Solaris devfs interfaces
2727 */
28+#ifdef HAVE_CONFIG_H
29+#include "config.h"
30+#endif
2831
2932 #include <stdlib.h>
3033 #include <strings.h>
--- a/src/x86_pci.c
+++ b/src/x86_pci.c
@@ -18,8 +18,10 @@
1818 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1919 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2020 */
21+#ifdef HAVE_CONFIG_H
22+#include "config.h"
23+#endif
2124
22-#define _GNU_SOURCE
2325 #include <unistd.h>
2426 #include <stdio.h>
2527 #include <stdlib.h>
Afficher sur ancien navigateur de dépôt.