]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
src/msg/async/net_handler.cc: Fix compilation
authorCarlos Valiente <carlos.valiente@ecmwf.int>
Thu, 14 Nov 2019 18:27:50 +0000 (18:27 +0000)
committerCarlos Valiente <carlos.valiente@ecmwf.int>
Thu, 14 Nov 2019 19:34:36 +0000 (19:34 +0000)
commit11974177574178451eb88fcaba011772d29a641d
tree57010806979c214692eb82db9114b24d8c6faad6
parent0ebf6ba50d25626cc36cf245a8fae8abb9191833
src/msg/async/net_handler.cc: Fix compilation

On a Cray system I'm working on, it seems that `SO_PRIORITY` is defined,
but `IPTOS_CLASS_CS6` is not. Without this patch, compilation fails at
line 150:

```
r = ::setsockopt(sd, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio));
```

because the variable `r` is not defined (originally it is defined inside
the `#ifdef IPTOS_CLASS_CS6` block).

Fixes: https://tracker.ceph.com/issues/42821
Signed-off-by: Carlos Valiente <carlos.valiente@ecmwf.int>
src/msg/async/net_handler.cc