In the GNU C Library, "makedev" is defined by <sys/sysmacros.h>. For historical compatibility, it is currently defined by <sys/types.h> as well, but it is planned to remove this soon.
Created attachment 13053 [details] patch for 4.6, 4.5 and 4.4
(In reply to Andreas Schneider from comment #1) Pushed to autobuild-v4-{6,5,4}-test.
(In reply to Karolin Seeger from comment #2) Pushed to all branches. Closing out bug report. Thanks!