Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gpu/cuda: fix build with external GDRCopy
If gdrapi.h is available, meson sets DRIVERS_GPU_CUDA_GDRCOPY_H as 1. This causes gdrcopy.c build to give an error; because compiler can not find signature of getenv. stdlib.h is included for the definition of getenv function. Bugzilla ID: 1133 Fixes: ca12f5e ("gpu/cuda: mark unused GDRCopy functions parameters") Cc: [email protected] Reported-by: John Romein <[email protected]> Signed-off-by: Levend Sayar <[email protected]> Acked-by: Elena Agostini <[email protected]>
- Loading branch information