logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0003-Revert-Add-back-sys-cdefs.h.patch (17699B)


  1. From a2b4fa9da830e1345df70c3372d6cfc14faf8f07 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Thu, 29 Apr 2021 12:09:05 -0700
  4. Subject: [PATCH] Revert "Add back <sys/cdefs.h>."
  5. This reverts commit 301fff723d18730ade4ef4034ed36fd6369f1886.
  6. ---
  7. libelf/elf.c | 2 --
  8. libelf/elf_begin.c | 2 --
  9. libelf/elf_cntl.c | 2 --
  10. libelf/elf_data.c | 2 --
  11. libelf/elf_end.c | 2 --
  12. libelf/elf_errmsg.c | 2 --
  13. libelf/elf_errno.c | 2 --
  14. libelf/elf_fill.c | 2 --
  15. libelf/elf_flag.c | 2 --
  16. libelf/elf_getarhdr.c | 2 --
  17. libelf/elf_getarsym.c | 2 --
  18. libelf/elf_getbase.c | 2 --
  19. libelf/elf_getident.c | 2 --
  20. libelf/elf_getversion.c | 2 --
  21. libelf/elf_hash.c | 2 --
  22. libelf/elf_kind.c | 2 --
  23. libelf/elf_memory.c | 2 --
  24. libelf/elf_next.c | 2 --
  25. libelf/elf_open.c | 2 --
  26. libelf/elf_phnum.c | 2 --
  27. libelf/elf_rand.c | 2 --
  28. libelf/elf_rawfile.c | 2 --
  29. libelf/elf_scn.c | 1 -
  30. libelf/elf_shnum.c | 2 --
  31. libelf/elf_shstrndx.c | 2 --
  32. libelf/elf_strptr.c | 1 -
  33. libelf/elf_update.c | 1 -
  34. libelf/elf_version.c | 2 --
  35. libelf/gelf_cap.c | 2 --
  36. libelf/gelf_checksum.c | 2 --
  37. libelf/gelf_dyn.c | 2 --
  38. libelf/gelf_ehdr.c | 2 --
  39. libelf/gelf_fsize.c | 2 --
  40. libelf/gelf_getclass.c | 2 --
  41. libelf/gelf_move.c | 2 --
  42. libelf/gelf_phdr.c | 2 --
  43. libelf/gelf_rel.c | 2 --
  44. libelf/gelf_rela.c | 2 --
  45. libelf/gelf_shdr.c | 2 --
  46. libelf/gelf_sym.c | 2 --
  47. libelf/gelf_syminfo.c | 2 --
  48. libelf/gelf_symshndx.c | 2 --
  49. libelf/gelf_xlate.c | 2 --
  50. libelf/libelf_allocate.c | 2 --
  51. libelf/libelf_ar.c | 2 --
  52. libelf/libelf_ar_util.c | 2 --
  53. libelf/libelf_checksum.c | 2 --
  54. libelf/libelf_convert.m4 | 2 --
  55. libelf/libelf_data.c | 2 --
  56. libelf/libelf_ehdr.c | 2 --
  57. libelf/libelf_elfmachine.c | 2 --
  58. libelf/libelf_extended.c | 2 --
  59. libelf/libelf_fsize.m4 | 2 --
  60. libelf/libelf_memory.c | 2 --
  61. libelf/libelf_msize.m4 | 2 --
  62. libelf/libelf_open.c | 1 -
  63. libelf/libelf_phdr.c | 2 --
  64. libelf/libelf_shdr.c | 2 --
  65. libelf/libelf_xlate.c | 2 --
  66. 59 files changed, 114 deletions(-)
  67. diff --git a/libelf/elf.c b/libelf/elf.c
  68. index 3eac4f47..b391c43a 100644
  69. --- a/libelf/elf.c
  70. +++ b/libelf/elf.c
  71. @@ -24,8 +24,6 @@
  72. * SUCH DAMAGE.
  73. */
  74. -#include <sys/cdefs.h>
  75. -
  76. #include <libelf.h>
  77. #include "_libelf.h"
  78. diff --git a/libelf/elf_begin.c b/libelf/elf_begin.c
  79. index f7b1b552..0eccc5f8 100644
  80. --- a/libelf/elf_begin.c
  81. +++ b/libelf/elf_begin.c
  82. @@ -24,8 +24,6 @@
  83. * SUCH DAMAGE.
  84. */
  85. -#include <sys/cdefs.h>
  86. -
  87. #include <libelf.h>
  88. #include "_libelf.h"
  89. diff --git a/libelf/elf_cntl.c b/libelf/elf_cntl.c
  90. index 92efa3b4..0f892fd4 100644
  91. --- a/libelf/elf_cntl.c
  92. +++ b/libelf/elf_cntl.c
  93. @@ -24,8 +24,6 @@
  94. * SUCH DAMAGE.
  95. */
  96. -#include <sys/cdefs.h>
  97. -
  98. #include <libelf.h>
  99. #include "_libelf.h"
  100. diff --git a/libelf/elf_data.c b/libelf/elf_data.c
  101. index 9101c1ac..0a380464 100644
  102. --- a/libelf/elf_data.c
  103. +++ b/libelf/elf_data.c
  104. @@ -24,8 +24,6 @@
  105. * SUCH DAMAGE.
  106. */
  107. -#include <sys/cdefs.h>
  108. -
  109. #include <assert.h>
  110. #include <errno.h>
  111. #include <libelf.h>
  112. diff --git a/libelf/elf_end.c b/libelf/elf_end.c
  113. index c5920c11..8e483236 100644
  114. --- a/libelf/elf_end.c
  115. +++ b/libelf/elf_end.c
  116. @@ -24,8 +24,6 @@
  117. * SUCH DAMAGE.
  118. */
  119. -#include <sys/cdefs.h>
  120. -
  121. #include <assert.h>
  122. #include <libelf.h>
  123. #include <stdlib.h>
  124. diff --git a/libelf/elf_errmsg.c b/libelf/elf_errmsg.c
  125. index de242828..e5f54762 100644
  126. --- a/libelf/elf_errmsg.c
  127. +++ b/libelf/elf_errmsg.c
  128. @@ -24,8 +24,6 @@
  129. * SUCH DAMAGE.
  130. */
  131. -#include <sys/cdefs.h>
  132. -
  133. #include <libelf.h>
  134. #include <stdio.h>
  135. #include <string.h>
  136. diff --git a/libelf/elf_errno.c b/libelf/elf_errno.c
  137. index baf6c0d7..056f129e 100644
  138. --- a/libelf/elf_errno.c
  139. +++ b/libelf/elf_errno.c
  140. @@ -24,8 +24,6 @@
  141. * SUCH DAMAGE.
  142. */
  143. -#include <sys/cdefs.h>
  144. -
  145. #include <libelf.h>
  146. #include "_libelf.h"
  147. diff --git a/libelf/elf_fill.c b/libelf/elf_fill.c
  148. index a6499182..bddec5d1 100644
  149. --- a/libelf/elf_fill.c
  150. +++ b/libelf/elf_fill.c
  151. @@ -24,8 +24,6 @@
  152. * SUCH DAMAGE.
  153. */
  154. -#include <sys/cdefs.h>
  155. -
  156. #include <libelf.h>
  157. #include "_libelf.h"
  158. diff --git a/libelf/elf_flag.c b/libelf/elf_flag.c
  159. index 0e68ef08..9c56cfac 100644
  160. --- a/libelf/elf_flag.c
  161. +++ b/libelf/elf_flag.c
  162. @@ -24,8 +24,6 @@
  163. * SUCH DAMAGE.
  164. */
  165. -#include <sys/cdefs.h>
  166. -
  167. #include <libelf.h>
  168. #include "_libelf.h"
  169. diff --git a/libelf/elf_getarhdr.c b/libelf/elf_getarhdr.c
  170. index 139ff36d..1a33171e 100644
  171. --- a/libelf/elf_getarhdr.c
  172. +++ b/libelf/elf_getarhdr.c
  173. @@ -24,8 +24,6 @@
  174. * SUCH DAMAGE.
  175. */
  176. -#include <sys/cdefs.h>
  177. -
  178. #include <libelf.h>
  179. #include "_libelf.h"
  180. diff --git a/libelf/elf_getarsym.c b/libelf/elf_getarsym.c
  181. index e9bd479e..4bfaf7f7 100644
  182. --- a/libelf/elf_getarsym.c
  183. +++ b/libelf/elf_getarsym.c
  184. @@ -24,8 +24,6 @@
  185. * SUCH DAMAGE.
  186. */
  187. -#include <sys/cdefs.h>
  188. -
  189. #include <libelf.h>
  190. #include "_libelf.h"
  191. diff --git a/libelf/elf_getbase.c b/libelf/elf_getbase.c
  192. index fe378afa..c42c0649 100644
  193. --- a/libelf/elf_getbase.c
  194. +++ b/libelf/elf_getbase.c
  195. @@ -24,8 +24,6 @@
  196. * SUCH DAMAGE.
  197. */
  198. -#include <sys/cdefs.h>
  199. -
  200. #include <libelf.h>
  201. #include "_libelf.h"
  202. diff --git a/libelf/elf_getident.c b/libelf/elf_getident.c
  203. index 701b1f20..c7d33a28 100644
  204. --- a/libelf/elf_getident.c
  205. +++ b/libelf/elf_getident.c
  206. @@ -24,8 +24,6 @@
  207. * SUCH DAMAGE.
  208. */
  209. -#include <sys/cdefs.h>
  210. -
  211. #include <ar.h>
  212. #include <assert.h>
  213. #include <libelf.h>
  214. diff --git a/libelf/elf_getversion.c b/libelf/elf_getversion.c
  215. index 24e68e6d..b967453c 100644
  216. --- a/libelf/elf_getversion.c
  217. +++ b/libelf/elf_getversion.c
  218. @@ -24,8 +24,6 @@
  219. * THE POSSIBILITY OF SUCH DAMAGE.
  220. */
  221. -#include <sys/cdefs.h>
  222. -
  223. #include <libelf.h>
  224. #include "_libelf.h"
  225. diff --git a/libelf/elf_hash.c b/libelf/elf_hash.c
  226. index 8d20acbd..f61e8268 100644
  227. --- a/libelf/elf_hash.c
  228. +++ b/libelf/elf_hash.c
  229. @@ -24,8 +24,6 @@
  230. * SUCH DAMAGE.
  231. */
  232. -#include <sys/cdefs.h>
  233. -
  234. #include <libelf.h>
  235. #include "_libelf.h"
  236. diff --git a/libelf/elf_kind.c b/libelf/elf_kind.c
  237. index d182c37b..45989800 100644
  238. --- a/libelf/elf_kind.c
  239. +++ b/libelf/elf_kind.c
  240. @@ -24,8 +24,6 @@
  241. * SUCH DAMAGE.
  242. */
  243. -#include <sys/cdefs.h>
  244. -
  245. #include <libelf.h>
  246. #include "_libelf.h"
  247. diff --git a/libelf/elf_memory.c b/libelf/elf_memory.c
  248. index 21cf2d2d..0544998c 100644
  249. --- a/libelf/elf_memory.c
  250. +++ b/libelf/elf_memory.c
  251. @@ -24,8 +24,6 @@
  252. * SUCH DAMAGE.
  253. */
  254. -#include <sys/cdefs.h>
  255. -
  256. #include <libelf.h>
  257. #include "_libelf.h"
  258. diff --git a/libelf/elf_next.c b/libelf/elf_next.c
  259. index 66fd2e22..e2fe9a2b 100644
  260. --- a/libelf/elf_next.c
  261. +++ b/libelf/elf_next.c
  262. @@ -24,8 +24,6 @@
  263. * SUCH DAMAGE.
  264. */
  265. -#include <sys/cdefs.h>
  266. -
  267. #include <ar.h>
  268. #include <assert.h>
  269. #include <libelf.h>
  270. diff --git a/libelf/elf_open.c b/libelf/elf_open.c
  271. index 577bcc7f..adad0610 100644
  272. --- a/libelf/elf_open.c
  273. +++ b/libelf/elf_open.c
  274. @@ -24,8 +24,6 @@
  275. * SUCH DAMAGE.
  276. */
  277. -#include <sys/cdefs.h>
  278. -
  279. #include <libelf.h>
  280. #include "_libelf.h"
  281. diff --git a/libelf/elf_phnum.c b/libelf/elf_phnum.c
  282. index 3ade2c45..3d2b1bcd 100644
  283. --- a/libelf/elf_phnum.c
  284. +++ b/libelf/elf_phnum.c
  285. @@ -24,8 +24,6 @@
  286. * SUCH DAMAGE.
  287. */
  288. -#include <sys/cdefs.h>
  289. -
  290. #include <ar.h>
  291. #include <libelf.h>
  292. diff --git a/libelf/elf_rand.c b/libelf/elf_rand.c
  293. index 6946fa6a..eafb0686 100644
  294. --- a/libelf/elf_rand.c
  295. +++ b/libelf/elf_rand.c
  296. @@ -24,8 +24,6 @@
  297. * SUCH DAMAGE.
  298. */
  299. -#include <sys/cdefs.h>
  300. -
  301. #include <ar.h>
  302. #include <libelf.h>
  303. diff --git a/libelf/elf_rawfile.c b/libelf/elf_rawfile.c
  304. index cd048e3a..5a5452b5 100644
  305. --- a/libelf/elf_rawfile.c
  306. +++ b/libelf/elf_rawfile.c
  307. @@ -24,8 +24,6 @@
  308. * SUCH DAMAGE.
  309. */
  310. -#include <sys/cdefs.h>
  311. -
  312. #include <libelf.h>
  313. #include "_libelf.h"
  314. diff --git a/libelf/elf_scn.c b/libelf/elf_scn.c
  315. index 2557581a..dfa77f53 100644
  316. --- a/libelf/elf_scn.c
  317. +++ b/libelf/elf_scn.c
  318. @@ -24,7 +24,6 @@
  319. * SUCH DAMAGE.
  320. */
  321. -#include <sys/cdefs.h>
  322. #include <sys/queue.h>
  323. #include <assert.h>
  324. diff --git a/libelf/elf_shnum.c b/libelf/elf_shnum.c
  325. index 4319a249..fbc0d0d5 100644
  326. --- a/libelf/elf_shnum.c
  327. +++ b/libelf/elf_shnum.c
  328. @@ -24,8 +24,6 @@
  329. * SUCH DAMAGE.
  330. */
  331. -#include <sys/cdefs.h>
  332. -
  333. #include <ar.h>
  334. #include <libelf.h>
  335. diff --git a/libelf/elf_shstrndx.c b/libelf/elf_shstrndx.c
  336. index 90c4b57a..ef62285d 100644
  337. --- a/libelf/elf_shstrndx.c
  338. +++ b/libelf/elf_shstrndx.c
  339. @@ -24,8 +24,6 @@
  340. * SUCH DAMAGE.
  341. */
  342. -#include <sys/cdefs.h>
  343. -
  344. #include <ar.h>
  345. #include <libelf.h>
  346. diff --git a/libelf/elf_strptr.c b/libelf/elf_strptr.c
  347. index 6a9e7c5d..5c594b45 100644
  348. --- a/libelf/elf_strptr.c
  349. +++ b/libelf/elf_strptr.c
  350. @@ -24,7 +24,6 @@
  351. * SUCH DAMAGE.
  352. */
  353. -#include <sys/cdefs.h>
  354. #include <sys/param.h>
  355. #include <assert.h>
  356. diff --git a/libelf/elf_update.c b/libelf/elf_update.c
  357. index baf64809..3e19b78a 100644
  358. --- a/libelf/elf_update.c
  359. +++ b/libelf/elf_update.c
  360. @@ -24,7 +24,6 @@
  361. * SUCH DAMAGE.
  362. */
  363. -#include <sys/cdefs.h>
  364. #include <sys/param.h>
  365. #include <sys/stat.h>
  366. diff --git a/libelf/elf_version.c b/libelf/elf_version.c
  367. index 4d4d9e06..f2037a16 100644
  368. --- a/libelf/elf_version.c
  369. +++ b/libelf/elf_version.c
  370. @@ -24,8 +24,6 @@
  371. * SUCH DAMAGE.
  372. */
  373. -#include <sys/cdefs.h>
  374. -
  375. #include <libelf.h>
  376. #include "_libelf.h"
  377. diff --git a/libelf/gelf_cap.c b/libelf/gelf_cap.c
  378. index ed63d793..2e82fdf2 100644
  379. --- a/libelf/gelf_cap.c
  380. +++ b/libelf/gelf_cap.c
  381. @@ -24,8 +24,6 @@
  382. * SUCH DAMAGE.
  383. */
  384. -#include <sys/cdefs.h>
  385. -
  386. #include <assert.h>
  387. #include <gelf.h>
  388. #include <limits.h>
  389. diff --git a/libelf/gelf_checksum.c b/libelf/gelf_checksum.c
  390. index ae1f1015..d29dd25f 100644
  391. --- a/libelf/gelf_checksum.c
  392. +++ b/libelf/gelf_checksum.c
  393. @@ -24,8 +24,6 @@
  394. * SUCH DAMAGE.
  395. */
  396. -#include <sys/cdefs.h>
  397. -
  398. #include <gelf.h>
  399. #include <libelf.h>
  400. diff --git a/libelf/gelf_dyn.c b/libelf/gelf_dyn.c
  401. index 950b9a72..653d39a5 100644
  402. --- a/libelf/gelf_dyn.c
  403. +++ b/libelf/gelf_dyn.c
  404. @@ -24,8 +24,6 @@
  405. * SUCH DAMAGE.
  406. */
  407. -#include <sys/cdefs.h>
  408. -
  409. #include <assert.h>
  410. #include <gelf.h>
  411. #include <limits.h>
  412. diff --git a/libelf/gelf_ehdr.c b/libelf/gelf_ehdr.c
  413. index 30983333..d6b42c7c 100644
  414. --- a/libelf/gelf_ehdr.c
  415. +++ b/libelf/gelf_ehdr.c
  416. @@ -24,8 +24,6 @@
  417. * SUCH DAMAGE.
  418. */
  419. -#include <sys/cdefs.h>
  420. -
  421. #include <assert.h>
  422. #include <gelf.h>
  423. #include <libelf.h>
  424. diff --git a/libelf/gelf_fsize.c b/libelf/gelf_fsize.c
  425. index 8cfeb7cc..3eeeb80c 100644
  426. --- a/libelf/gelf_fsize.c
  427. +++ b/libelf/gelf_fsize.c
  428. @@ -24,8 +24,6 @@
  429. * SUCH DAMAGE.
  430. */
  431. -#include <sys/cdefs.h>
  432. -
  433. #include <gelf.h>
  434. #include <libelf.h>
  435. diff --git a/libelf/gelf_getclass.c b/libelf/gelf_getclass.c
  436. index eb8bfd4e..3e5bf4f3 100644
  437. --- a/libelf/gelf_getclass.c
  438. +++ b/libelf/gelf_getclass.c
  439. @@ -24,8 +24,6 @@
  440. * SUCH DAMAGE.
  441. */
  442. -#include <sys/cdefs.h>
  443. -
  444. #include <gelf.h>
  445. #include "_libelf.h"
  446. diff --git a/libelf/gelf_move.c b/libelf/gelf_move.c
  447. index d3f2011e..20bc0d86 100644
  448. --- a/libelf/gelf_move.c
  449. +++ b/libelf/gelf_move.c
  450. @@ -24,8 +24,6 @@
  451. * SUCH DAMAGE.
  452. */
  453. -#include <sys/cdefs.h>
  454. -
  455. #include <assert.h>
  456. #include <gelf.h>
  457. #include <limits.h>
  458. diff --git a/libelf/gelf_phdr.c b/libelf/gelf_phdr.c
  459. index 0ac2c8bf..5996910d 100644
  460. --- a/libelf/gelf_phdr.c
  461. +++ b/libelf/gelf_phdr.c
  462. @@ -24,8 +24,6 @@
  463. * SUCH DAMAGE.
  464. */
  465. -#include <sys/cdefs.h>
  466. -
  467. #include <gelf.h>
  468. #include <libelf.h>
  469. #include <limits.h>
  470. diff --git a/libelf/gelf_rel.c b/libelf/gelf_rel.c
  471. index 1a1459ab..60332597 100644
  472. --- a/libelf/gelf_rel.c
  473. +++ b/libelf/gelf_rel.c
  474. @@ -24,8 +24,6 @@
  475. * SUCH DAMAGE.
  476. */
  477. -#include <sys/cdefs.h>
  478. -
  479. #include <assert.h>
  480. #include <gelf.h>
  481. #include <limits.h>
  482. diff --git a/libelf/gelf_rela.c b/libelf/gelf_rela.c
  483. index 40f94da7..40462248 100644
  484. --- a/libelf/gelf_rela.c
  485. +++ b/libelf/gelf_rela.c
  486. @@ -24,8 +24,6 @@
  487. * SUCH DAMAGE.
  488. */
  489. -#include <sys/cdefs.h>
  490. -
  491. #include <assert.h>
  492. #include <gelf.h>
  493. #include <limits.h>
  494. diff --git a/libelf/gelf_shdr.c b/libelf/gelf_shdr.c
  495. index 9150776b..2248551e 100644
  496. --- a/libelf/gelf_shdr.c
  497. +++ b/libelf/gelf_shdr.c
  498. @@ -24,8 +24,6 @@
  499. * SUCH DAMAGE.
  500. */
  501. -#include <sys/cdefs.h>
  502. -
  503. #include <assert.h>
  504. #include <gelf.h>
  505. #include <libelf.h>
  506. diff --git a/libelf/gelf_sym.c b/libelf/gelf_sym.c
  507. index a8422395..998bfda2 100644
  508. --- a/libelf/gelf_sym.c
  509. +++ b/libelf/gelf_sym.c
  510. @@ -24,8 +24,6 @@
  511. * SUCH DAMAGE.
  512. */
  513. -#include <sys/cdefs.h>
  514. -
  515. #include <assert.h>
  516. #include <gelf.h>
  517. #include <limits.h>
  518. diff --git a/libelf/gelf_syminfo.c b/libelf/gelf_syminfo.c
  519. index ae6c8473..d97ab291 100644
  520. --- a/libelf/gelf_syminfo.c
  521. +++ b/libelf/gelf_syminfo.c
  522. @@ -24,8 +24,6 @@
  523. * SUCH DAMAGE.
  524. */
  525. -#include <sys/cdefs.h>
  526. -
  527. #include <assert.h>
  528. #include <gelf.h>
  529. diff --git a/libelf/gelf_symshndx.c b/libelf/gelf_symshndx.c
  530. index ab6e8519..0ba1cc08 100644
  531. --- a/libelf/gelf_symshndx.c
  532. +++ b/libelf/gelf_symshndx.c
  533. @@ -24,8 +24,6 @@
  534. * SUCH DAMAGE.
  535. */
  536. -#include <sys/cdefs.h>
  537. -
  538. #include <assert.h>
  539. #include <gelf.h>
  540. diff --git a/libelf/gelf_xlate.c b/libelf/gelf_xlate.c
  541. index 228b17bf..af539a5a 100644
  542. --- a/libelf/gelf_xlate.c
  543. +++ b/libelf/gelf_xlate.c
  544. @@ -24,8 +24,6 @@
  545. * SUCH DAMAGE.
  546. */
  547. -#include <sys/cdefs.h>
  548. -
  549. #include <gelf.h>
  550. #include <libelf.h>
  551. #include <string.h>
  552. diff --git a/libelf/libelf_allocate.c b/libelf/libelf_allocate.c
  553. index 1387568e..3cf58ae7 100644
  554. --- a/libelf/libelf_allocate.c
  555. +++ b/libelf/libelf_allocate.c
  556. @@ -28,8 +28,6 @@
  557. * Internal APIs
  558. */
  559. -#include <sys/cdefs.h>
  560. -
  561. #include <assert.h>
  562. #include <errno.h>
  563. #include <libelf.h>
  564. diff --git a/libelf/libelf_ar.c b/libelf/libelf_ar.c
  565. index 2a8b834b..26632c86 100644
  566. --- a/libelf/libelf_ar.c
  567. +++ b/libelf/libelf_ar.c
  568. @@ -24,8 +24,6 @@
  569. * SUCH DAMAGE.
  570. */
  571. -#include <sys/cdefs.h>
  572. -
  573. #include <assert.h>
  574. #include <ctype.h>
  575. #include <libelf.h>
  576. diff --git a/libelf/libelf_ar_util.c b/libelf/libelf_ar_util.c
  577. index 601036fa..f98e7258 100644
  578. --- a/libelf/libelf_ar_util.c
  579. +++ b/libelf/libelf_ar_util.c
  580. @@ -24,8 +24,6 @@
  581. * SUCH DAMAGE.
  582. */
  583. -#include <sys/cdefs.h>
  584. -
  585. #include <assert.h>
  586. #include <libelf.h>
  587. #include <stdlib.h>
  588. diff --git a/libelf/libelf_checksum.c b/libelf/libelf_checksum.c
  589. index 84ab3370..d573bc20 100644
  590. --- a/libelf/libelf_checksum.c
  591. +++ b/libelf/libelf_checksum.c
  592. @@ -24,8 +24,6 @@
  593. * SUCH DAMAGE.
  594. */
  595. -#include <sys/cdefs.h>
  596. -
  597. #include <gelf.h>
  598. #include "_libelf.h"
  599. diff --git a/libelf/libelf_convert.m4 b/libelf/libelf_convert.m4
  600. index c9e3c28a..e9eb743b 100644
  601. --- a/libelf/libelf_convert.m4
  602. +++ b/libelf/libelf_convert.m4
  603. @@ -24,8 +24,6 @@
  604. * SUCH DAMAGE.
  605. */
  606. -#include <sys/cdefs.h>
  607. -
  608. #include <assert.h>
  609. #include <libelf.h>
  610. #include <string.h>
  611. diff --git a/libelf/libelf_data.c b/libelf/libelf_data.c
  612. index 3f921a00..6b8f50ae 100644
  613. --- a/libelf/libelf_data.c
  614. +++ b/libelf/libelf_data.c
  615. @@ -24,8 +24,6 @@
  616. * SUCH DAMAGE.
  617. */
  618. -#include <sys/cdefs.h>
  619. -
  620. #include <libelf.h>
  621. #include "_libelf.h"
  622. diff --git a/libelf/libelf_ehdr.c b/libelf/libelf_ehdr.c
  623. index 75b3dd00..813e4e17 100644
  624. --- a/libelf/libelf_ehdr.c
  625. +++ b/libelf/libelf_ehdr.c
  626. @@ -24,8 +24,6 @@
  627. * SUCH DAMAGE.
  628. */
  629. -#include <sys/cdefs.h>
  630. -
  631. #include <assert.h>
  632. #include <gelf.h>
  633. #include <libelf.h>
  634. diff --git a/libelf/libelf_elfmachine.c b/libelf/libelf_elfmachine.c
  635. index 5b8244f4..c7e44b39 100644
  636. --- a/libelf/libelf_elfmachine.c
  637. +++ b/libelf/libelf_elfmachine.c
  638. @@ -24,8 +24,6 @@
  639. * SUCH DAMAGE.
  640. */
  641. -#include <sys/cdefs.h>
  642. -
  643. #include <assert.h>
  644. #include <libelf.h>
  645. diff --git a/libelf/libelf_extended.c b/libelf/libelf_extended.c
  646. index 2ddac923..2cde9fad 100644
  647. --- a/libelf/libelf_extended.c
  648. +++ b/libelf/libelf_extended.c
  649. @@ -24,8 +24,6 @@
  650. * SUCH DAMAGE.
  651. */
  652. -#include <sys/cdefs.h>
  653. -
  654. #include <assert.h>
  655. #include <libelf.h>
  656. diff --git a/libelf/libelf_fsize.m4 b/libelf/libelf_fsize.m4
  657. index 256a856a..0192b7ed 100644
  658. --- a/libelf/libelf_fsize.m4
  659. +++ b/libelf/libelf_fsize.m4
  660. @@ -24,8 +24,6 @@
  661. * SUCH DAMAGE.
  662. */
  663. -#include <sys/cdefs.h>
  664. -
  665. #include <libelf.h>
  666. #include "_libelf.h"
  667. diff --git a/libelf/libelf_memory.c b/libelf/libelf_memory.c
  668. index 9aad49b8..e2b6bd22 100644
  669. --- a/libelf/libelf_memory.c
  670. +++ b/libelf/libelf_memory.c
  671. @@ -24,8 +24,6 @@
  672. * SUCH DAMAGE.
  673. */
  674. -#include <sys/cdefs.h>
  675. -
  676. #include <ar.h>
  677. #include <assert.h>
  678. #include <string.h>
  679. diff --git a/libelf/libelf_msize.m4 b/libelf/libelf_msize.m4
  680. index b4cc8634..b6bfb80d 100644
  681. --- a/libelf/libelf_msize.m4
  682. +++ b/libelf/libelf_msize.m4
  683. @@ -24,8 +24,6 @@
  684. * SUCH DAMAGE.
  685. */
  686. -#include <sys/cdefs.h>
  687. -
  688. #include <assert.h>
  689. #include <libelf.h>
  690. #include <string.h>
  691. diff --git a/libelf/libelf_open.c b/libelf/libelf_open.c
  692. index 7216df14..4b0cec72 100644
  693. --- a/libelf/libelf_open.c
  694. +++ b/libelf/libelf_open.c
  695. @@ -24,7 +24,6 @@
  696. * SUCH DAMAGE.
  697. */
  698. -#include <sys/cdefs.h>
  699. #include <sys/types.h>
  700. #include <sys/stat.h>
  701. diff --git a/libelf/libelf_phdr.c b/libelf/libelf_phdr.c
  702. index ac92679f..88cac8aa 100644
  703. --- a/libelf/libelf_phdr.c
  704. +++ b/libelf/libelf_phdr.c
  705. @@ -24,8 +24,6 @@
  706. * SUCH DAMAGE.
  707. */
  708. -#include <sys/cdefs.h>
  709. -
  710. #include <assert.h>
  711. #include <gelf.h>
  712. #include <libelf.h>
  713. diff --git a/libelf/libelf_shdr.c b/libelf/libelf_shdr.c
  714. index 463a0ed0..604a6701 100644
  715. --- a/libelf/libelf_shdr.c
  716. +++ b/libelf/libelf_shdr.c
  717. @@ -24,8 +24,6 @@
  718. * SUCH DAMAGE.
  719. */
  720. -#include <sys/cdefs.h>
  721. -
  722. #include <gelf.h>
  723. #include <libelf.h>
  724. diff --git a/libelf/libelf_xlate.c b/libelf/libelf_xlate.c
  725. index 003f9532..f8a7967c 100644
  726. --- a/libelf/libelf_xlate.c
  727. +++ b/libelf/libelf_xlate.c
  728. @@ -24,8 +24,6 @@
  729. * SUCH DAMAGE.
  730. */
  731. -#include <sys/cdefs.h>
  732. -
  733. #include <assert.h>
  734. #include <libelf.h>
  735. --
  736. 2.31.1