# Deprecated @unix and @unix\_only macros in Mmap

**URL:** <https://discourse.julialang.org/t/deprecated-unix-and-unix-only-macros-in-mmap/12137>\
**Category:** General Usage\
**Created:** [July 3, 2018, 4:39pm UTC](https://discourse.julialang.org/t/deprecated-unix-and-unix-only-macros-in-mmap/12137 "2018-07-03T16:39:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pegger0709](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pegger0709/32/1811_2.png) [@pegger0709](https://discourse.julialang.org/u/pegger0709)\
**Post date:** [July 3, 2018, 4:39pm UTC](https://discourse.julialang.org/t/deprecated-unix-and-unix-only-macros-in-mmap/12137/1 "2018-07-03T16:39:01Z")

</div>

Hello,  
I need Mmap in order to run the NIfTI package and when I run Pkg.test(“Mmap”), I get the following error message:

```julia
julia> Pkg.test("Mmap")
INFO: Testing Mmap
ERROR: LoadError: LoadError: UndefVarError: @unix not defined
Stacktrace:
 [1] include_from_node1(::String) at ./loading.jl:576
while loading /home/pegger/.julia/v0.6/Mmap/src/Mmap.jl, in expression starting on line 5
while loading /home/pegger/.julia/v0.6/Mmap/test/runtests.jl, in expression starting on line 1
==============================================================================================[ERROR: Mmap]===============================================================================================

failed process: Process(`/home/pegger/Julia/v0.6.3/bin/julia -Cgeneric -J/home/pegger/Julia/v0.6.3/lib/julia/sys.so --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes /home/pegger/.julia/v0.6/Mmap/test/runtests.jl`, ProcessExited(1)) [1]

============================================================================================================================================================================================================
ERROR: Mmap had test errors

```

I want to get around that by making some change by hand to Mmap.jl, does anyone know how I could do this?

Thanks,  
Philip

---

<div class="post-metadata">

**Author:** ![kevbonham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevbonham/32/216165_2.png) [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Post date:** [July 5, 2018, 2:12am UTC](https://discourse.julialang.org/t/deprecated-unix-and-unix-only-macros-in-mmap/12137/2 "2018-07-05T02:12:42Z")

</div>

The path is there in the error - make the change to that file, then just add and commit it to the repo.

Edit: you probably want to make a new branch first, otherwise things might get hairy if you try to switch back.
