libdrm/libdrm-implicit-defs.diff
Stefan Dirsch a920094385 Accepting request 104249 from home:jengelh:branches:X11:XOrg
The masterpiece of this night.

- Update to new upstream release 2.4.31 (Wayland wants this)
- Package shlibs separately according to policy
- Package description updates

OBS-URL: https://build.opensuse.org/request/show/104249
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libdrm?expand=0&rev=95
2012-02-13 10:09:00 +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)