libdrm/libdrm-implicit-defs.diff
Stefan Dirsch 19bbb2dd0d - back to libdrm 2.4.33, since 2.4.34 currentlz requires Mesa git
master changes for nouveau Mesa driver build
- update to version 2.4.34, see NEWS for detail, here follows

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libdrm?expand=0&rev=107
2012-05-29 09:51:44 +00:00

30 lines
975 B
Diff

From: Jan Engelhardt <jengelh@medozas.de>
Date: 2012-02-11 18:30:33.770195708 +0100
Resolve compiler warnings about use of implicit declared-functions.
radeon_ttm.c: In function 'radeon_open_fd':
radeon_ttm.c:58:5: warning: implicit declaration of function 'drmOpen' [-Wimplicit-function-declaration]
radeon_ttm.c: In function 'main':
radeon_ttm.c:73:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
radeon_ttm.c: At top level:
---
tests/radeon/radeon_ttm.c | 2 ++
1 file changed, 2 insertions(+)
Index: libdrm-2.4.31/tests/radeon/radeon_ttm.c
===================================================================
--- libdrm-2.4.31.orig/tests/radeon/radeon_ttm.c
+++ libdrm-2.4.31/tests/radeon/radeon_ttm.c
@@ -25,7 +25,9 @@
*/
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include "rbo.h"
+#include "xf86drm.h"
/* allocate as many single page bo to try to starve the kernel
* memory zone (below highmem)