import_gcrypth.sed 595 B

123456789101112131415161718
  1. /^#@INSERT_SYS_SELECT_H@/ d
  2. /^@FALLBACK_SOCKLEN_T@/ d
  3. /^# *include <stdlib\.h>/ d
  4. /^# *include <string\.h>/ d
  5. /^# *include <winsock2\.h>/ d
  6. /^# *include <ws2tcpip\.h>/ d
  7. /^# *include <time\.h>/ d
  8. /^# *include <sys\/socket\.h>/ d
  9. /^# *include <sys\/time\.h>/ d
  10. /^ typedef long ssize_t;/ d
  11. /^ typedef int pid_t;/ d
  12. /^# *include <gpg-error\.h>/ s,#include <gpg-error.h>,#include <grub/gcrypt/gpg-error.h>,
  13. /^typedef gpg_error_t gcry_error_t;/ d
  14. /^typedef gpg_err_code_t gcry_err_code_t;/ d
  15. /^typedef struct gcry_mpi \*gcry_mpi_t;/ d
  16. /^struct gcry_thread_cbs/ d
  17. s,_gcry_mpi_invm,gcry_mpi_invm,g
  18. p