Skip to content

Commit

Permalink
Update tensorflow-sources.file
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar authored and iarspider committed Sep 12, 2024
1 parent d400a6d commit fe44e3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tensorflow-sources.file
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ sed -i -e 's|lib/python[^/]*/site-packages/|lib/python%{cms_python3_major_minor_

#EL7: Include stdarg.h before zlib.h to avoid 'va_list' has not been declared error.
%if 0%{?rhel} == 7
sed -i -e 's|#include <zlib.h>|#include <stdarg.h>\n#include <zlib.h>|' third_party/xla/third_party/tsl/tsl/lib/io/zlib_outputbuffer.h
sed -i -e 's|#include <zlib.h>|#include <stdarg.h>\n#include <zlib.h>|' \
third_party/xla/third_party/tsl/tsl/lib/io/zlib_outputbuffer.h \
tensorflow/core/lib/png/png_io.cc
%endif

%build
Expand Down

0 comments on commit fe44e3b

Please sign in to comment.