libdvbv5: Fix compilation on RHEL5
authorGregor Jasny <gjasny@googlemail.com>
Wed, 27 Jun 2012 08:04:16 +0000 (01:04 -0700)
committerGregor Jasny <gjasny@googlemail.com>
Wed, 27 Jun 2012 17:35:14 +0000 (19:35 +0200)
In file included from /usr/include/stdlib.h:438,
                 from ../../lib/include/dvb-fe.h:26,
                 from dvb-fe.c:22:
/usr/include/sys/types.h:62: error: conflicting types for 'dev_t'
/usr/include/linux/types.h:13: error: previous declaration of 'dev_t' was here
/usr/include/sys/types.h:67: error: conflicting types for 'gid_t'
/usr/include/linux/types.h:27: error: previous declaration of 'gid_t' was here
/usr/include/sys/types.h:72: error: conflicting types for 'mode_t'
/usr/include/linux/types.h:15: error: previous declaration of 'mode_t' was here
/usr/include/sys/types.h:77: error: conflicting types for 'nlink_t'
/usr/include/linux/types.h:16: error: previous declaration of 'nlink_t' was here
/usr/include/sys/types.h:82: error: conflicting types for 'uid_t'
/usr/include/linux/types.h:26: error: previous declaration of 'uid_t' was here

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
lib/libdvbv5/dvb-fe.c

index a32454e6ff36b1c2fc939272522df1aa734361db..4fb927af32c28c0fd2ec4e5cf3822815133f72fe 100644 (file)
@@ -16,6 +16,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  */
+#include <sys/types.h>
 
 #include "dvb-v5.h"
 #include "dvb-v5-std.h"