$OpenBSD: patch-rawshark_c,v 1.6 2020/11/20 17:29:11 sthen Exp $

Index: rawshark.c
--- rawshark.c.orig
+++ rawshark.c
@@ -571,7 +571,11 @@ main(int argc, char *argv[])
                 limit.rlim_cur = get_positive_int(optarg, "memory limit");
                 limit.rlim_max = get_positive_int(optarg, "memory limit");
 
+#ifdef RLIMIT_AS
                 if(setrlimit(RLIMIT_AS, &limit) != 0) {
+#else
+                if(setrlimit(RLIMIT_DATA, &limit) != 0) {
+#endif
                     cmdarg_err("setrlimit() returned error");
                     ret = INVALID_OPTION;
                     goto clean_exit;
