diff options
Diffstat (limited to 'rpminfo.c')
-rw-r--r-- | rpminfo.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -35,7 +35,6 @@ #include "rpminfo_arginfo.h" -#ifdef HAVE_ARCHIVE struct php_rpm_stream_data_t { FD_t gzdi; Header h; @@ -46,7 +45,6 @@ struct php_rpm_stream_data_t { #define STREAM_DATA_FROM_STREAM() \ struct php_rpm_stream_data_t *self = (struct php_rpm_stream_data_t *) stream->abstract; -#endif ZEND_DECLARE_MODULE_GLOBALS(rpminfo) @@ -349,14 +347,12 @@ static int haveIndex(zend_long tag) { tag == RPMDBI_INSTALLTID || tag == RPMDBI_SIGMD5 || tag == RPMDBI_SHA1HEADER || -#ifdef HAVE_WEAKDEP tag == RPMDBI_FILETRIGGERNAME || tag == RPMDBI_TRANSFILETRIGGERNAME || tag == RPMDBI_RECOMMENDNAME || tag == RPMDBI_SUGGESTNAME || tag == RPMDBI_SUPPLEMENTNAME || tag == RPMDBI_ENHANCENAME || -#endif tag == RPMDBI_INSTFILENAMES) { return 1; } @@ -578,7 +574,6 @@ PHP_FUNCTION(rpmaddtag) } /* }}} */ -#ifdef HAVE_ARCHIVE static ssize_t php_rpm_ops_read(php_stream *stream, char *buf, size_t count) { ssize_t n = -1; @@ -871,7 +866,6 @@ PHP_FUNCTION(rpmgetsymlink) Fclose(gzdi); } /* }}} */ -#endif /* HAVE_ARCHIVE */ /* {{{ PHP_MINIT_FUNCTION @@ -919,9 +913,7 @@ PHP_MINIT_FUNCTION(rpminfo) } rpmtdFree(names); -#ifdef HAVE_ARCHIVE php_register_url_stream_wrapper("rpm", &php_stream_rpm_wrapper); -#endif return SUCCESS; } @@ -977,11 +969,7 @@ PHP_MINFO_FUNCTION(rpminfo) php_info_print_table_row(2, "Author", PHP_RPMINFO_AUTHOR); php_info_print_table_row(2, "License", PHP_RPMINFO_LICENSE); php_info_print_table_row(2, "RPM library version", RPMVERSION); -#ifdef HAVE_ARCHIVE php_info_print_table_row(2, "RPM stream wrapper", "yes"); -#else - php_info_print_table_row(2, "RPM stream wrapper", "no"); -#endif php_info_print_table_end(); /* Remove comments if you have entries in php.ini |